diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index eaddb0b..204c396 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.25.6")]
-[assembly: AssemblyFileVersion("1.0.25.6")]
+[assembly: AssemblyVersion("1.0.25.7")]
+[assembly: AssemblyFileVersion("1.0.25.7")]
diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs
index c8f1d43..a089b1f 100644
--- a/Properties/Settings.Designer.cs
+++ b/Properties/Settings.Designer.cs
@@ -62,7 +62,7 @@ namespace SystemTrayMenu.Properties
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("C:\\ProgramData\\Microsoft\\Windows\\Start Menu recursiv:True onlyFiles:True|")]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
public string PathsAddToMainMenu
{
get
diff --git a/Resources/lang.Designer.cs b/Resources/lang.Designer.cs
index 84c7ef5..2100d53 100644
--- a/Resources/lang.Designer.cs
+++ b/Resources/lang.Designer.cs
@@ -96,6 +96,15 @@ namespace SystemTrayMenu.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Add sample 'Start Menu' folder.
+ ///
+ internal static string Add_sample__Start_Menu__folder {
+ get {
+ return ResourceManager.GetString("Add sample \'Start Menu\' folder", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Advanced.
///
diff --git a/Resources/lang.cs-CZ.resx b/Resources/lang.cs-CZ.resx
index a023287..a2ccfbd 100644
--- a/Resources/lang.cs-CZ.resx
+++ b/Resources/lang.cs-CZ.resx
@@ -396,4 +396,7 @@
Pouze soubory
+
+ Přidejte ukázkovou složku 'Start Menu'
+
\ No newline at end of file
diff --git a/Resources/lang.de-DE.resx b/Resources/lang.de-DE.resx
index 51f3c69..f482761 100644
--- a/Resources/lang.de-DE.resx
+++ b/Resources/lang.de-DE.resx
@@ -396,4 +396,7 @@
Nur Dateien
+
+ Beispielordner 'Startmenü' hinzufügen
+
\ No newline at end of file
diff --git a/Resources/lang.es-ES.resx b/Resources/lang.es-ES.resx
index 54a6d30..74cf2e4 100644
--- a/Resources/lang.es-ES.resx
+++ b/Resources/lang.es-ES.resx
@@ -396,4 +396,7 @@
Solo archivos
+
+ Agregar carpeta de muestra 'Menú Inicio'
+
\ No newline at end of file
diff --git a/Resources/lang.fr-FR.resx b/Resources/lang.fr-FR.resx
index 0f31d34..4ad4715 100644
--- a/Resources/lang.fr-FR.resx
+++ b/Resources/lang.fr-FR.resx
@@ -396,4 +396,7 @@
Fichiers uniquement
+
+ Ajouter un exemple de dossier 'Start Menu'
+
\ No newline at end of file
diff --git a/Resources/lang.it-IT.resx b/Resources/lang.it-IT.resx
index 0e76ba5..26921e6 100644
--- a/Resources/lang.it-IT.resx
+++ b/Resources/lang.it-IT.resx
@@ -396,4 +396,7 @@
Solo file
+
+ Aggiungi la cartella "Start Menu" di esempio
+
\ No newline at end of file
diff --git a/Resources/lang.ja-JP.resx b/Resources/lang.ja-JP.resx
index 893ad6c..8c87690 100644
--- a/Resources/lang.ja-JP.resx
+++ b/Resources/lang.ja-JP.resx
@@ -396,4 +396,7 @@
ファイルのみ
+
+ サンプルの「スタートメニュー」フォルダを追加します
+
\ No newline at end of file
diff --git a/Resources/lang.ko-KR.resx b/Resources/lang.ko-KR.resx
index 733b0e9..258b261 100644
--- a/Resources/lang.ko-KR.resx
+++ b/Resources/lang.ko-KR.resx
@@ -396,4 +396,7 @@
파일만
+
+ 샘플 '시작 메뉴' 폴더 추가
+
\ No newline at end of file
diff --git a/Resources/lang.nl-NL.resx b/Resources/lang.nl-NL.resx
index 9204d98..68e10b7 100644
--- a/Resources/lang.nl-NL.resx
+++ b/Resources/lang.nl-NL.resx
@@ -396,4 +396,7 @@
Alleen bestanden
+
+ Voorbeeldmap 'Start Menu' toevoegen
+
\ No newline at end of file
diff --git a/Resources/lang.pt-BR.resx b/Resources/lang.pt-BR.resx
index 54129c0..622cfc3 100644
--- a/Resources/lang.pt-BR.resx
+++ b/Resources/lang.pt-BR.resx
@@ -396,4 +396,7 @@
Apenas arquivos
+
+ Adicionar amostra da pasta 'Menu Iniciar'
+
\ No newline at end of file
diff --git a/Resources/lang.resx b/Resources/lang.resx
index 7033257..2fe0027 100644
--- a/Resources/lang.resx
+++ b/Resources/lang.resx
@@ -396,4 +396,7 @@
Clear cache if more than this number of items
+
+ Add sample 'Start Menu' folder
+
\ No newline at end of file
diff --git a/Resources/lang.ru-RU.resx b/Resources/lang.ru-RU.resx
index e068c7b..2ed584f 100644
--- a/Resources/lang.ru-RU.resx
+++ b/Resources/lang.ru-RU.resx
@@ -396,4 +396,7 @@
Только файлы
+
+ Добавить образец папки "Меню Пуск"
+
\ No newline at end of file
diff --git a/Resources/lang.tr-TR.resx b/Resources/lang.tr-TR.resx
index e0bfd2d..01962d7 100644
--- a/Resources/lang.tr-TR.resx
+++ b/Resources/lang.tr-TR.resx
@@ -396,4 +396,7 @@
Yalnızca Dosyalar
+
+ Örnek 'Başlat Menüsü' klasörü ekleyin
+
\ No newline at end of file
diff --git a/Resources/lang.vi-VN.resx b/Resources/lang.vi-VN.resx
index 19546b8..39451d6 100644
--- a/Resources/lang.vi-VN.resx
+++ b/Resources/lang.vi-VN.resx
@@ -396,4 +396,7 @@
Chỉ tệp
+
+ Thêm thư mục 'Start Menu' mẫu
+
\ No newline at end of file
diff --git a/Resources/lang.zh-CN.resx b/Resources/lang.zh-CN.resx
index 25b4842..b7fec2a 100644
--- a/Resources/lang.zh-CN.resx
+++ b/Resources/lang.zh-CN.resx
@@ -396,4 +396,7 @@
只有文件
+
+ 添加示例“开始菜单”文件夹
+
\ No newline at end of file
diff --git a/UserInterface/SettingsForm.Designer.cs b/UserInterface/SettingsForm.Designer.cs
index a7f4941..f8b69e2 100644
--- a/UserInterface/SettingsForm.Designer.cs
+++ b/UserInterface/SettingsForm.Designer.cs
@@ -68,6 +68,8 @@ namespace SystemTrayMenu.UserInterface
this.checkBoxCacheMainMenu = new System.Windows.Forms.CheckBox();
this.groupBoxFoldersInRootFolder = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel();
+ this.tableLayoutPanel9 = new System.Windows.Forms.TableLayoutPanel();
+ this.buttonAddSampleStartMenuFolder = new System.Windows.Forms.Button();
this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
this.buttonAddFolderToRootFolder = new System.Windows.Forms.Button();
this.buttonRemoveFolder = new System.Windows.Forms.Button();
@@ -313,6 +315,7 @@ namespace SystemTrayMenu.UserInterface
((System.ComponentModel.ISupportInitialize)(this.numericUpDownClearCacheIfMoreThanThisNumberOfItems)).BeginInit();
this.groupBoxFoldersInRootFolder.SuspendLayout();
this.tableLayoutPanel7.SuspendLayout();
+ this.tableLayoutPanel9.SuspendLayout();
this.tableLayoutPanel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewFolders)).BeginInit();
this.tabPageAdvanced.SuspendLayout();
@@ -900,7 +903,7 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel8.Controls.Add(this.numericUpDownClearCacheIfMoreThanThisNumberOfItems, 0, 0);
this.tableLayoutPanel8.Controls.Add(this.labelClearCacheIfMoreThanThisNumberOfItems, 1, 0);
- this.tableLayoutPanel8.Location = new System.Drawing.Point(0, 344);
+ this.tableLayoutPanel8.Location = new System.Drawing.Point(0, 315);
this.tableLayoutPanel8.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel8.Name = "tableLayoutPanel8";
this.tableLayoutPanel8.RowCount = 1;
@@ -944,7 +947,7 @@ namespace SystemTrayMenu.UserInterface
// checkBoxCacheMainMenu
//
this.checkBoxCacheMainMenu.AutoSize = true;
- this.checkBoxCacheMainMenu.Location = new System.Drawing.Point(3, 322);
+ this.checkBoxCacheMainMenu.Location = new System.Drawing.Point(3, 293);
this.checkBoxCacheMainMenu.Name = "checkBoxCacheMainMenu";
this.checkBoxCacheMainMenu.Size = new System.Drawing.Size(168, 19);
this.checkBoxCacheMainMenu.TabIndex = 2;
@@ -960,7 +963,7 @@ namespace SystemTrayMenu.UserInterface
this.groupBoxFoldersInRootFolder.MaximumSize = new System.Drawing.Size(400, 0);
this.groupBoxFoldersInRootFolder.MinimumSize = new System.Drawing.Size(400, 0);
this.groupBoxFoldersInRootFolder.Name = "groupBoxFoldersInRootFolder";
- this.groupBoxFoldersInRootFolder.Size = new System.Drawing.Size(400, 313);
+ this.groupBoxFoldersInRootFolder.Size = new System.Drawing.Size(400, 284);
this.groupBoxFoldersInRootFolder.TabIndex = 0;
this.groupBoxFoldersInRootFolder.TabStop = false;
this.groupBoxFoldersInRootFolder.Text = "groupBox1";
@@ -971,18 +974,52 @@ namespace SystemTrayMenu.UserInterface
this.tableLayoutPanel7.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tableLayoutPanel7.ColumnCount = 1;
this.tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel7.Controls.Add(this.tableLayoutPanel9, 0, 3);
this.tableLayoutPanel7.Controls.Add(this.tableLayoutPanel6, 0, 1);
this.tableLayoutPanel7.Controls.Add(this.dataGridViewFolders, 0, 2);
this.tableLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel7.Location = new System.Drawing.Point(3, 19);
this.tableLayoutPanel7.Name = "tableLayoutPanel7";
- this.tableLayoutPanel7.RowCount = 3;
+ this.tableLayoutPanel7.RowCount = 4;
this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle());
- this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 260F));
- this.tableLayoutPanel7.Size = new System.Drawing.Size(394, 291);
+ this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 200F));
+ this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle());
+ this.tableLayoutPanel7.Size = new System.Drawing.Size(394, 262);
this.tableLayoutPanel7.TabIndex = 0;
//
+ // tableLayoutPanel9
+ //
+ this.tableLayoutPanel9.AutoSize = true;
+ this.tableLayoutPanel9.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.tableLayoutPanel9.ColumnCount = 2;
+ this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel9.Controls.Add(this.buttonAddSampleStartMenuFolder, 0, 0);
+ this.tableLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel9.Location = new System.Drawing.Point(0, 231);
+ this.tableLayoutPanel9.Margin = new System.Windows.Forms.Padding(0);
+ this.tableLayoutPanel9.Name = "tableLayoutPanel9";
+ this.tableLayoutPanel9.RowCount = 1;
+ this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel9.Size = new System.Drawing.Size(394, 31);
+ this.tableLayoutPanel9.TabIndex = 3;
+ //
+ // buttonAddSampleStartMenuFolder
+ //
+ this.buttonAddSampleStartMenuFolder.AutoSize = true;
+ this.buttonAddSampleStartMenuFolder.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.buttonAddSampleStartMenuFolder.Location = new System.Drawing.Point(2, 3);
+ this.buttonAddSampleStartMenuFolder.Margin = new System.Windows.Forms.Padding(2, 3, 3, 3);
+ this.buttonAddSampleStartMenuFolder.MinimumSize = new System.Drawing.Size(75, 23);
+ this.buttonAddSampleStartMenuFolder.Name = "buttonAddSampleStartMenuFolder";
+ this.buttonAddSampleStartMenuFolder.Size = new System.Drawing.Size(202, 25);
+ this.buttonAddSampleStartMenuFolder.TabIndex = 0;
+ this.buttonAddSampleStartMenuFolder.Text = "buttonAddSampleStartMenuFolder";
+ this.buttonAddSampleStartMenuFolder.UseVisualStyleBackColor = true;
+ this.buttonAddSampleStartMenuFolder.Click += new System.EventHandler(this.ButtonAddSampleStartMenuFolder_Click);
+ //
// tableLayoutPanel6
//
this.tableLayoutPanel6.AutoSize = true;
@@ -1047,9 +1084,12 @@ namespace SystemTrayMenu.UserInterface
this.dataGridViewFolders.RowHeadersVisible = false;
this.dataGridViewFolders.RowTemplate.Height = 25;
this.dataGridViewFolders.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dataGridViewFolders.Size = new System.Drawing.Size(388, 254);
+ this.dataGridViewFolders.Size = new System.Drawing.Size(388, 194);
this.dataGridViewFolders.TabIndex = 1;
this.dataGridViewFolders.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.DataGridViewFolders_CellValidating);
+ this.dataGridViewFolders.CurrentCellDirtyStateChanged += new System.EventHandler(this.DataGridViewFolders_CurrentCellDirtyStateChanged);
+ this.dataGridViewFolders.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.DataGridViewFolders_RowsAdded);
+ this.dataGridViewFolders.RowsRemoved += new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.DataGridViewFolders_RowsRemoved);
this.dataGridViewFolders.SelectionChanged += new System.EventHandler(this.DataGridViewFolders_SelectionChanged);
this.dataGridViewFolders.MouseClick += new System.Windows.Forms.MouseEventHandler(this.DataGridViewFolders_MouseClick);
//
@@ -1081,7 +1121,7 @@ namespace SystemTrayMenu.UserInterface
//
this.buttonDefaultFolders.AutoSize = true;
this.buttonDefaultFolders.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
- this.buttonDefaultFolders.Location = new System.Drawing.Point(9, 382);
+ this.buttonDefaultFolders.Location = new System.Drawing.Point(9, 353);
this.buttonDefaultFolders.Margin = new System.Windows.Forms.Padding(9, 9, 3, 9);
this.buttonDefaultFolders.MinimumSize = new System.Drawing.Size(75, 25);
this.buttonDefaultFolders.Name = "buttonDefaultFolders";
@@ -4127,6 +4167,8 @@ namespace SystemTrayMenu.UserInterface
this.groupBoxFoldersInRootFolder.PerformLayout();
this.tableLayoutPanel7.ResumeLayout(false);
this.tableLayoutPanel7.PerformLayout();
+ this.tableLayoutPanel9.ResumeLayout(false);
+ this.tableLayoutPanel9.PerformLayout();
this.tableLayoutPanel6.ResumeLayout(false);
this.tableLayoutPanel6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewFolders)).EndInit();
@@ -4574,5 +4616,7 @@ namespace SystemTrayMenu.UserInterface
private System.Windows.Forms.NumericUpDown numericUpDownClearCacheIfMoreThanThisNumberOfItems;
private System.Windows.Forms.Label labelClearCacheIfMoreThanThisNumberOfItems;
private System.Windows.Forms.CheckBox checkBoxCacheMainMenu;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel9;
+ private System.Windows.Forms.Button buttonAddSampleStartMenuFolder;
}
}
\ No newline at end of file
diff --git a/UserInterface/SettingsForm.cs b/UserInterface/SettingsForm.cs
index f88c851..cc350fc 100644
--- a/UserInterface/SettingsForm.cs
+++ b/UserInterface/SettingsForm.cs
@@ -136,6 +136,7 @@ namespace SystemTrayMenu.UserInterface
ColumnFolder.HeaderText = Translator.GetText("Folder paths");
ColumnRecursiveLevel.HeaderText = Translator.GetText("Recursive");
ColumnOnlyFiles.HeaderText = Translator.GetText("Only Files");
+ buttonAddSampleStartMenuFolder.Text = Translator.GetText("Add sample 'Start Menu' folder");
buttonDefaultFolders.Text = Translator.GetText("Default");
groupBoxClick.Text = Translator.GetText("Click");
checkBoxCacheMainMenu.Text = Translator.GetText("Cache main menu");
@@ -836,6 +837,104 @@ namespace SystemTrayMenu.UserInterface
inHotkey = false;
}
+ private void ButtonAddSampleStartMenuFolder_Click(object sender, EventArgs e)
+ {
+ dataGridViewFolders.Rows.Clear();
+ string folderPathCommonStartMenu = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu);
+ dataGridViewFolders.Rows.Add(folderPathCommonStartMenu, true, true);
+ dataGridViewFolders.ClearSelection();
+ }
+
+ private void ButtonClearFolders_Click(object sender, EventArgs e)
+ {
+ dataGridViewFolders.Rows.Clear();
+ checkBoxCacheMainMenu.Checked = true;
+ numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = 1000;
+ }
+
+ private void ButtonAddFolderToRootFolder_Click(object sender, EventArgs e)
+ {
+ using FolderDialog dialog = new FolderDialog();
+ dialog.InitialFolder = Config.Path;
+
+ if (dialog.ShowDialog() == DialogResult.OK)
+ {
+ dataGridViewFolders.Rows.Add(dialog.Folder, false, true);
+ }
+
+ dataGridViewFolders.ClearSelection();
+ }
+
+ private void ButtonRemoveFolder_Click(object sender, EventArgs e)
+ {
+ int selectedRowCount = dataGridViewFolders.Rows.GetRowCount(DataGridViewElementStates.Selected);
+ if (selectedRowCount > 0)
+ {
+ for (int i = 0; i < selectedRowCount; i++)
+ {
+ dataGridViewFolders.Rows.RemoveAt(dataGridViewFolders.SelectedRows[0].Index);
+ }
+ }
+
+ dataGridViewFolders.ClearSelection();
+ }
+
+ private void DataGridViewFolders_SelectionChanged(object sender, EventArgs e)
+ {
+ buttonRemoveFolder.Enabled = dataGridViewFolders.SelectedRows.Count > 0;
+ }
+
+ private void DataGridViewFolders_MouseClick(object sender, MouseEventArgs e)
+ {
+ if (dataGridViewFolders.HitTest(e.X, e.Y).RowIndex < 0)
+ {
+ dataGridViewFolders.ClearSelection();
+ }
+ }
+
+ private void DataGridViewFolders_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
+ {
+ if (e.ColumnIndex == 0)
+ {
+ dataGridViewFolders.CancelEdit();
+ }
+ }
+
+ private void DataGridViewFolders_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
+ {
+ EnableButtonAddStartMenu();
+ }
+
+ private void DataGridViewFolders_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
+ {
+ EnableButtonAddStartMenu();
+ }
+
+ private void DataGridViewFolders_CurrentCellDirtyStateChanged(object sender, EventArgs e)
+ {
+ EnableButtonAddStartMenu();
+ }
+
+ private void EnableButtonAddStartMenu()
+ {
+ bool doesStartMenuFolderExist = false;
+ foreach (DataGridViewRow row in dataGridViewFolders.Rows)
+ {
+ string folderPathCommonStartMenu = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu);
+ string pathAddToMainMenu = row.Cells[0].Value.ToString();
+ bool recursiv = (bool)row.Cells[1].EditedFormattedValue;
+ bool onlyFiles = (bool)row.Cells[2].EditedFormattedValue;
+ if (folderPathCommonStartMenu == pathAddToMainMenu &&
+ recursiv == true &&
+ onlyFiles == true)
+ {
+ doesStartMenuFolderExist = true;
+ }
+ }
+
+ buttonAddSampleStartMenuFolder.Enabled = !doesStartMenuFolderExist;
+ }
+
private void ButtonAdvancedDefault_Click(object sender, EventArgs e)
{
checkBoxOpenItemWithOneClick.Checked = true;
@@ -1026,63 +1125,5 @@ namespace SystemTrayMenu.UserInterface
DialogResult = DialogResult.Cancel;
Close();
}
-
- private void ButtonClearFolders_Click(object sender, EventArgs e)
- {
- dataGridViewFolders.Rows.Clear();
- string folderPathCommonStartMenu = Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu);
- dataGridViewFolders.Rows.Add(folderPathCommonStartMenu, true, true);
- dataGridViewFolders.ClearSelection();
-
- checkBoxCacheMainMenu.Checked = true;
- numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = 1000;
- }
-
- private void ButtonRemoveFolder_Click(object sender, EventArgs e)
- {
- int selectedRowCount = dataGridViewFolders.Rows.GetRowCount(DataGridViewElementStates.Selected);
- if (selectedRowCount > 0)
- {
- for (int i = 0; i < selectedRowCount; i++)
- {
- dataGridViewFolders.Rows.RemoveAt(dataGridViewFolders.SelectedRows[0].Index);
- }
- }
-
- dataGridViewFolders.ClearSelection();
- }
-
- private void DataGridViewFolders_SelectionChanged(object sender, EventArgs e)
- {
- buttonRemoveFolder.Enabled = dataGridViewFolders.SelectedRows.Count > 0;
- }
-
- private void ButtonAddFolderToRootFolder_Click(object sender, EventArgs e)
- {
- using FolderDialog dialog = new FolderDialog();
-
- if (dialog.ShowDialog() == DialogResult.OK)
- {
- dataGridViewFolders.Rows.Add(dialog.Folder, false);
- }
-
- dataGridViewFolders.ClearSelection();
- }
-
- private void DataGridViewFolders_MouseClick(object sender, MouseEventArgs e)
- {
- if (dataGridViewFolders.HitTest(e.X, e.Y).RowIndex < 0)
- {
- dataGridViewFolders.ClearSelection();
- }
- }
-
- private void DataGridViewFolders_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
- {
- if (e.ColumnIndex == 0)
- {
- dataGridViewFolders.CancelEdit();
- }
- }
}
}
diff --git a/UserInterface/SettingsForm.resx b/UserInterface/SettingsForm.resx
index 2ee9745..cd4a7dc 100644
--- a/UserInterface/SettingsForm.resx
+++ b/UserInterface/SettingsForm.resx
@@ -66,15 +66,6 @@
True
-
- True
-
-
- True
-
-
- True
-
17, 17