mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-15 00:45:16 +12:00
This commit is contained in:
parent
fc353ce760
commit
6d8cf4da39
|
@ -75,16 +75,38 @@ namespace SystemTrayMenu.Handler
|
|||
switch (keys)
|
||||
{
|
||||
case Keys.Enter:
|
||||
SelectByKey(keys);
|
||||
menus[iMenuKey].FocusTextBox();
|
||||
break;
|
||||
case Keys.Left:
|
||||
if (Properties.Settings.Default.AppearAtTheBottomLeft)
|
||||
{
|
||||
SelectByKey(Keys.Right);
|
||||
}
|
||||
else
|
||||
{
|
||||
SelectByKey(keys);
|
||||
}
|
||||
|
||||
break;
|
||||
case Keys.Right:
|
||||
if (Properties.Settings.Default.AppearAtTheBottomLeft)
|
||||
{
|
||||
SelectByKey(Keys.Left);
|
||||
}
|
||||
else
|
||||
{
|
||||
SelectByKey(keys);
|
||||
}
|
||||
|
||||
break;
|
||||
case Keys.Up:
|
||||
case Keys.Down:
|
||||
case Keys.Left:
|
||||
case Keys.Right:
|
||||
case Keys.Escape:
|
||||
SelectByKey(keys);
|
||||
break;
|
||||
case Keys.Control | Keys.F:
|
||||
Menu menu = menus[iMenuKey];
|
||||
menu.FocusTextBox();
|
||||
menus[iMenuKey].FocusTextBox();
|
||||
break;
|
||||
case Keys.Tab:
|
||||
{
|
||||
|
@ -215,7 +237,11 @@ namespace SystemTrayMenu.Handler
|
|||
{
|
||||
DataGridViewRow row = dgv.Rows[i];
|
||||
RowData rowData = (RowData)row.Cells[2].Value;
|
||||
if (rowData != null)
|
||||
{
|
||||
rowData.IsSelected = true;
|
||||
}
|
||||
|
||||
if (refreshview)
|
||||
{
|
||||
row.Selected = false;
|
||||
|
|
|
@ -45,33 +45,42 @@ namespace SystemTrayMenu.Business
|
|||
{
|
||||
workerMainMenu.WorkerSupportsCancellation = true;
|
||||
workerMainMenu.DoWork += LoadMenu;
|
||||
static void LoadMenu(object senderDoWork, DoWorkEventArgs eDoWork)
|
||||
{
|
||||
string path = Config.Path;
|
||||
int level = 0;
|
||||
RowData rowData = eDoWork.Argument as RowData;
|
||||
if (rowData != null)
|
||||
{
|
||||
path = rowData.TargetFilePath;
|
||||
level = rowData.MenuLevel + 1;
|
||||
}
|
||||
|
||||
MenuData menuData = GetData((BackgroundWorker)senderDoWork, path, level);
|
||||
menuData.RowDataParent = rowData;
|
||||
eDoWork.Result = menuData;
|
||||
}
|
||||
|
||||
workerMainMenu.RunWorkerCompleted += LoadMainMenuCompleted;
|
||||
void LoadMainMenuCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||
{
|
||||
keyboardInput.ResetSelectedByKey();
|
||||
LoadStopped();
|
||||
|
||||
if (e.Result == null)
|
||||
{
|
||||
// Clean up menu status IsMenuOpen for previous one
|
||||
DataGridView dgvMainMenu = menus[0].GetDataGridView();
|
||||
foreach (DataRow row in ((DataTable)dgvMainMenu.DataSource).Rows)
|
||||
{
|
||||
RowData rowDataToClear = (RowData)row[2];
|
||||
rowDataToClear.IsMenuOpen = false;
|
||||
rowDataToClear.IsSelected = false;
|
||||
rowDataToClear.IsContextMenuOpen = false;
|
||||
}
|
||||
|
||||
RefreshSelection(dgvMainMenu);
|
||||
|
||||
AsEnumerable.ToList().ForEach(m => { m.ShowWithFade(); });
|
||||
menus[0].ResetSearchText();
|
||||
}
|
||||
else
|
||||
{
|
||||
MenuData menuData = (MenuData)e.Result;
|
||||
switch (menuData.Validity)
|
||||
{
|
||||
case MenuDataValidity.Valid:
|
||||
if (!Properties.Settings.Default.CacheMainMenu)
|
||||
{
|
||||
DisposeMenu(menus[menuData.Level]);
|
||||
menus[0] = Create(menuData, Path.GetFileName(Config.Path));
|
||||
}
|
||||
|
||||
AsEnumerable.ToList().ForEach(m => { m.ShowWithFade(); });
|
||||
break;
|
||||
case MenuDataValidity.Empty:
|
||||
|
@ -104,6 +113,7 @@ namespace SystemTrayMenu.Business
|
|||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
openCloseState = OpenCloseState.Default;
|
||||
}
|
||||
|
@ -304,6 +314,14 @@ namespace SystemTrayMenu.Business
|
|||
Validity = MenuDataValidity.AbortedOrUnknown,
|
||||
Level = level,
|
||||
};
|
||||
|
||||
string[] directoriesToAddToMainMenu = Array.Empty<string>();
|
||||
string[] filesToAddToMainMenu = Array.Empty<string>();
|
||||
if (level == 0)
|
||||
{
|
||||
AddFoldersToMainMenu(ref directoriesToAddToMainMenu, ref filesToAddToMainMenu);
|
||||
}
|
||||
|
||||
if (!worker.CancellationPending)
|
||||
{
|
||||
string[] directories = Array.Empty<string>();
|
||||
|
@ -369,6 +387,7 @@ namespace SystemTrayMenu.Business
|
|||
else
|
||||
{
|
||||
directories = Directory.GetDirectories(path);
|
||||
directories = directories.Concat(directoriesToAddToMainMenu).ToArray();
|
||||
}
|
||||
|
||||
Array.Sort(directories, new WindowsExplorerSort());
|
||||
|
@ -422,6 +441,7 @@ namespace SystemTrayMenu.Business
|
|||
else if (!FileLnk.IsNetworkRoot(path))
|
||||
{
|
||||
files = Directory.GetFiles(path);
|
||||
files = files.Concat(filesToAddToMainMenu).ToArray();
|
||||
}
|
||||
|
||||
Array.Sort(files, new WindowsExplorerSort());
|
||||
|
@ -572,12 +592,22 @@ namespace SystemTrayMenu.Business
|
|||
internal void MainPreload()
|
||||
{
|
||||
IconReader.SingleThread = true;
|
||||
LoadStarted();
|
||||
menus[0] = Create(
|
||||
GetData(workerMainMenu, Config.Path, 0),
|
||||
Path.GetFileName(Config.Path));
|
||||
IconReader.SingleThread = false;
|
||||
AdjustMenusSizeAndLocation();
|
||||
if (Properties.Settings.Default.CacheMainMenu)
|
||||
{
|
||||
workerMainMenu.DoWork -= LoadMenu;
|
||||
}
|
||||
else
|
||||
{
|
||||
DisposeMenu(menus[0]);
|
||||
}
|
||||
|
||||
LoadStopped();
|
||||
|
||||
if (FileUrl.GetDefaultBrowserPath(out string browserPath))
|
||||
{
|
||||
|
@ -603,6 +633,93 @@ namespace SystemTrayMenu.Business
|
|||
}
|
||||
}
|
||||
|
||||
private static void LoadMenu(object senderDoWork, DoWorkEventArgs eDoWork)
|
||||
{
|
||||
string path = Config.Path;
|
||||
int level = 0;
|
||||
RowData rowData = eDoWork.Argument as RowData;
|
||||
if (rowData != null)
|
||||
{
|
||||
path = rowData.TargetFilePath;
|
||||
level = rowData.MenuLevel + 1;
|
||||
}
|
||||
|
||||
MenuData menuData = GetData((BackgroundWorker)senderDoWork, path, level);
|
||||
menuData.RowDataParent = rowData;
|
||||
eDoWork.Result = menuData;
|
||||
}
|
||||
|
||||
private static void AddFoldersToMainMenu(ref string[] directoriesToAddToMainMenu, ref string[] filesToAddToMainMenu)
|
||||
{
|
||||
string pathAddToMainMenu = string.Empty;
|
||||
bool recursive = false;
|
||||
try
|
||||
{
|
||||
foreach (string pathAndRecursivString in Properties.Settings.Default.PathsAddToMainMenu.Split(@"|"))
|
||||
{
|
||||
if (string.IsNullOrEmpty(pathAndRecursivString))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
pathAddToMainMenu = pathAndRecursivString.Split("recursiv:")[0].Trim();
|
||||
recursive = pathAndRecursivString.Split("recursiv:")[1].StartsWith("True");
|
||||
bool onlyFiles = pathAndRecursivString.Split("onlyFiles:")[1].StartsWith("True");
|
||||
|
||||
string[] directoriesToConcat = Array.Empty<string>();
|
||||
string[] filesToAddToConcat = Array.Empty<string>();
|
||||
if (recursive)
|
||||
{
|
||||
GetDirectoriesAndFilesRecursive(ref directoriesToConcat, ref filesToAddToConcat, pathAddToMainMenu);
|
||||
}
|
||||
else
|
||||
{
|
||||
directoriesToConcat = Directory.GetDirectories(pathAddToMainMenu);
|
||||
filesToAddToConcat = Directory.GetFiles(pathAddToMainMenu);
|
||||
}
|
||||
|
||||
if (!onlyFiles)
|
||||
{
|
||||
directoriesToAddToMainMenu = directoriesToAddToMainMenu.Concat(directoriesToConcat).ToArray();
|
||||
}
|
||||
|
||||
filesToAddToMainMenu = filesToAddToMainMenu.Concat(filesToAddToConcat).ToArray();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Warn($"path:'{pathAddToMainMenu}' recursiv:{recursive}", ex);
|
||||
}
|
||||
}
|
||||
|
||||
private static void GetDirectoriesAndFilesRecursive(ref string[] directoriesToConcat, ref string[] filesToAddToConcat, string pathAddToMainMenu)
|
||||
{
|
||||
try
|
||||
{
|
||||
string[] directories = Directory.GetDirectories(pathAddToMainMenu);
|
||||
|
||||
try
|
||||
{
|
||||
filesToAddToConcat = filesToAddToConcat.Concat(Directory.GetFiles(pathAddToMainMenu)).ToArray();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Warn($"GetDirectoriesAndFilesRecursive path:'{pathAddToMainMenu}'", ex);
|
||||
}
|
||||
|
||||
foreach (string directory in directories)
|
||||
{
|
||||
GetDirectoriesAndFilesRecursive(ref directoriesToConcat, ref filesToAddToConcat, directory);
|
||||
}
|
||||
|
||||
directoriesToConcat = directoriesToConcat.Concat(directories).ToArray();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Warn($"GetDirectoriesAndFilesRecursive path:'{pathAddToMainMenu}'", ex);
|
||||
}
|
||||
}
|
||||
|
||||
private static RowData ReadRowData(string fileName, bool isResolvedLnk, RowData rowData = null)
|
||||
{
|
||||
if (rowData == null)
|
||||
|
@ -774,7 +891,7 @@ namespace SystemTrayMenu.Business
|
|||
AdjustMenusSizeAndLocation();
|
||||
}
|
||||
|
||||
if (!menu.Visible)
|
||||
if (!menu.Visible && menu.Level != 0)
|
||||
{
|
||||
DisposeMenu(menu);
|
||||
}
|
||||
|
|
|
@ -261,7 +261,11 @@ namespace SystemTrayMenu.DataClasses
|
|||
bool handled = false;
|
||||
resolvedLnkPath = FileLnk.GetResolvedFileName(TargetFilePath);
|
||||
|
||||
if (string.IsNullOrEmpty(Path.GetExtension(resolvedLnkPath)))
|
||||
if (string.IsNullOrEmpty(resolvedLnkPath))
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
else if (string.IsNullOrEmpty(Path.GetExtension(resolvedLnkPath)))
|
||||
{
|
||||
icon = IconReader.GetFolderIconWithCache(TargetFilePathOrig, IconReader.FolderType.Open, true, true, out bool loading);
|
||||
IconLoading = loading;
|
||||
|
|
|
@ -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.3")]
|
||||
[assembly: AssemblyFileVersion("1.0.25.3")]
|
||||
[assembly: AssemblyVersion("1.0.25.5")]
|
||||
[assembly: AssemblyFileVersion("1.0.25.5")]
|
||||
|
|
48
Properties/Settings.Designer.cs
generated
48
Properties/Settings.Designer.cs
generated
|
@ -59,6 +59,22 @@ 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|")]
|
||||
public string PathsAddToMainMenu
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((string)(this["PathsAddToMainMenu"]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this["PathsAddToMainMenu"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
@ -171,6 +187,22 @@ namespace SystemTrayMenu.Properties
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool CacheMainMenu
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((bool)(this["CacheMainMenu"]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this["CacheMainMenu"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
@ -187,6 +219,22 @@ namespace SystemTrayMenu.Properties
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("1000")]
|
||||
public int ClearCacheIfMoreThanThisNumberOfItems
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((int)(this["ClearCacheIfMoreThanThisNumberOfItems"]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this["ClearCacheIfMoreThanThisNumberOfItems"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
|
81
Resources/lang.Designer.cs
generated
81
Resources/lang.Designer.cs
generated
|
@ -78,6 +78,24 @@ namespace SystemTrayMenu.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add folder.
|
||||
/// </summary>
|
||||
internal static string Add_folder {
|
||||
get {
|
||||
return ResourceManager.GetString("Add folder", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add folders to main menu.
|
||||
/// </summary>
|
||||
internal static string Add_folders_to_main_menu {
|
||||
get {
|
||||
return ResourceManager.GetString("Add folders to main menu", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Advanced.
|
||||
/// </summary>
|
||||
|
@ -231,6 +249,15 @@ namespace SystemTrayMenu.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cache main menu.
|
||||
/// </summary>
|
||||
internal static string Cache_main_menu {
|
||||
get {
|
||||
return ResourceManager.GetString("Cache main menu", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Change folder.
|
||||
/// </summary>
|
||||
|
@ -249,6 +276,15 @@ namespace SystemTrayMenu.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Clear cache if more than this number of items.
|
||||
/// </summary>
|
||||
internal static string Clear_cache_if_more_than_this_number_of_items {
|
||||
get {
|
||||
return ResourceManager.GetString("Clear cache if more than this number of items", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Click.
|
||||
/// </summary>
|
||||
|
@ -366,6 +402,24 @@ namespace SystemTrayMenu.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Folder paths.
|
||||
/// </summary>
|
||||
internal static string Folder_paths {
|
||||
get {
|
||||
return ResourceManager.GetString("Folder paths", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Folders.
|
||||
/// </summary>
|
||||
internal static string Folders {
|
||||
get {
|
||||
return ResourceManager.GetString("Folders", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to General.
|
||||
/// </summary>
|
||||
|
@ -520,6 +574,15 @@ namespace SystemTrayMenu.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Only Files.
|
||||
/// </summary>
|
||||
internal static string Only_Files {
|
||||
get {
|
||||
return ResourceManager.GetString("Only Files", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Open Folder.
|
||||
/// </summary>
|
||||
|
@ -574,6 +637,24 @@ namespace SystemTrayMenu.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Recursive.
|
||||
/// </summary>
|
||||
internal static string Recursive {
|
||||
get {
|
||||
return ResourceManager.GetString("Recursive", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Remove folder.
|
||||
/// </summary>
|
||||
internal static string Remove_folder {
|
||||
get {
|
||||
return ResourceManager.GetString("Remove folder", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Restart.
|
||||
/// </summary>
|
||||
|
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Zobrazí se vlevo dole</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Přidat složku</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Přidejte složky do hlavní nabídky</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Cesty složek</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Složky</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Rekurzivní</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Odebrat složku</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Hlavní nabídka mezipaměti</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Pokud je více než tento počet položek, vymažte mezipaměť</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Pouze soubory</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Erscheine unten links</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Ordner hinzufügen</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Ordner zum Hauptmenü hinzufügen</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Ordnerpfade</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Ordner</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Rekursiv</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Ordner entfernen</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Cache-Hauptmenü</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Cache leeren, wenn mehr als diese Anzahl von Elementen</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Nur Dateien</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Aparecen en la parte inferior izquierda</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Agregar carpeta</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Agregar carpetas al menú principal</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Rutas de carpeta</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Carpetas</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Recursivo</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Quitar carpeta</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Menú principal de caché</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Borrar caché si hay más elementos que este</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Solo archivos</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Apparaît en bas à gauche</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Ajouter le dossier</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Ajouter des dossiers au menu principal</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Chemins de dossier</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Dossiers</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Récursif</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Supprimer le dossier</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Menu principal du cache</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Vider le cache si plus que ce nombre d'éléments</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Fichiers uniquement</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Appari in basso a sinistra</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Aggiungi cartella</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Aggiungi cartelle al menu principale</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Percorsi delle cartelle</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Cartelle</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Ricorsivo</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Rimuovi cartella</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Menu principale della cache</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Svuota la cache se più di questo numero di elementi</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Solo file</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>左下に表示されます</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>フォルダーを追加</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>メインメニューにフォルダを追加する</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>フォルダパス</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>フォルダー</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>再帰的</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>フォルダを削除します</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>キャッシュのメインメニュー</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>アイテムの数がこの数を超える場合は、キャッシュをクリアします</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>ファイルのみ</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>왼쪽 하단에 나타남</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>폴더 추가</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>기본 메뉴에 폴더 추가</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>폴더 경로</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>폴더</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>재귀</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>폴더 제거</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>캐시 메인 메뉴</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>이 항목 수보다 많은 경우 캐시 지우기</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>파일만</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Verschijnen linksonder</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Map toevoegen</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Mappen toevoegen aan hoofdmenu</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Mappaden</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Mappen</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Recursief</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Map verwijderen</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Hoofdmenu cache</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Cache wissen bij meer dan dit aantal items</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Alleen bestanden</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Aparece no canto inferior esquerdo</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Adicionar pasta</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Adicionar pastas ao menu principal</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Caminhos de pasta</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Pastas</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Recursiva</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Remover pasta</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Menu principal do cache</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Limpe o cache se houver mais do que este número de itens</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Apenas arquivos</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Appear at the bottom left</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Add folder</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Add folders to main menu</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Folder paths</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Folders</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Recursive</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Remove folder</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Only Files</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Cache main menu</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Clear cache if more than this number of items</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Появляются внизу слева</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Добавить папку</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Добавить папки в главное меню</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Пути к папкам</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Папки</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Рекурсивный</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Удалить папку</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Главное меню кеширования</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Очистить кеш, если количество элементов превышает указанное</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Только файлы</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Sol altta görün</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Klasörü eklemek</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Ana menüye klasörler ekleyin</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Klasör yolları</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>klasörler</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Özyinelemeli</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Klasörü kaldır</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Önbellek ana menüsü</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Bu sayıda öğeden fazlaysa önbelleği temizle</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Yalnızca Dosyalar</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>Xuất hiện ở dưới cùng bên trái</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>Thêm thư mục</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>Thêm thư mục vào menu chính</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>Đường dẫn thư mục</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>Thư mục</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>Đệ quy</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>Xóa thư mục</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>Menu chính của bộ nhớ đệm</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>Xóa bộ nhớ cache nếu nhiều hơn số lượng mục này</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>Chỉ tệp</value>
|
||||
</data>
|
||||
</root>
|
|
@ -369,4 +369,31 @@
|
|||
<data name="Appear at the bottom left" xml:space="preserve">
|
||||
<value>出现在左下角</value>
|
||||
</data>
|
||||
<data name="Add folder" xml:space="preserve">
|
||||
<value>新增文件夹</value>
|
||||
</data>
|
||||
<data name="Add folders to main menu" xml:space="preserve">
|
||||
<value>将文件夹添加到主菜单</value>
|
||||
</data>
|
||||
<data name="Folder paths" xml:space="preserve">
|
||||
<value>文件夹路径</value>
|
||||
</data>
|
||||
<data name="Folders" xml:space="preserve">
|
||||
<value>文件夹</value>
|
||||
</data>
|
||||
<data name="Recursive" xml:space="preserve">
|
||||
<value>递归</value>
|
||||
</data>
|
||||
<data name="Remove folder" xml:space="preserve">
|
||||
<value>删除文件夹</value>
|
||||
</data>
|
||||
<data name="Cache main menu" xml:space="preserve">
|
||||
<value>缓存主菜单</value>
|
||||
</data>
|
||||
<data name="Clear cache if more than this number of items" xml:space="preserve">
|
||||
<value>如果超过此数量的项目,则清除缓存</value>
|
||||
</data>
|
||||
<data name="Only Files" xml:space="preserve">
|
||||
<value>只有文件</value>
|
||||
</data>
|
||||
</root>
|
|
@ -89,6 +89,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
{
|
||||
threadsLoading = true;
|
||||
load.Start();
|
||||
Load_Tick(load, null);
|
||||
}
|
||||
|
||||
public void LoadingStop()
|
||||
|
@ -123,8 +124,9 @@ namespace SystemTrayMenu.UserInterface
|
|||
notifyIcon.Icon = systemTrayMenu;
|
||||
load.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
void DisposeIconIfNotDefaultIcon()
|
||||
private void DisposeIconIfNotDefaultIcon()
|
||||
{
|
||||
if (notifyIcon.Icon.GetHashCode() != systemTrayMenu.GetHashCode())
|
||||
{
|
||||
|
@ -133,4 +135,3 @@ namespace SystemTrayMenu.UserInterface
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -218,6 +218,11 @@ namespace SystemTrayMenu.UserInterface
|
|||
}
|
||||
}
|
||||
|
||||
internal void ResetSearchText()
|
||||
{
|
||||
textBoxSearch.Text = string.Empty;
|
||||
}
|
||||
|
||||
internal void FocusTextBox()
|
||||
{
|
||||
textBoxSearch.SelectAll();
|
||||
|
|
312
UserInterface/SettingsForm.Designer.cs
generated
312
UserInterface/SettingsForm.Designer.cs
generated
|
@ -60,6 +60,22 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.groupBoxLanguage = new System.Windows.Forms.GroupBox();
|
||||
this.tableLayoutPanelLanguage = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.comboBoxLanguage = new System.Windows.Forms.ComboBox();
|
||||
this.tabControlFolders = new System.Windows.Forms.TabPage();
|
||||
this.tableLayoutPanelFoldersInRootFolder = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.tableLayoutPanel8 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems = new System.Windows.Forms.NumericUpDown();
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems = new System.Windows.Forms.Label();
|
||||
this.checkBoxCacheMainMenu = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxFoldersInRootFolder = new System.Windows.Forms.GroupBox();
|
||||
this.tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.buttonAddFolderToRootFolder = new System.Windows.Forms.Button();
|
||||
this.buttonRemoveFolder = new System.Windows.Forms.Button();
|
||||
this.dataGridViewFolders = new System.Windows.Forms.DataGridView();
|
||||
this.ColumnFolder = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ColumnRecursiveLevel = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.ColumnOnlyFiles = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.buttonDefaultFolders = new System.Windows.Forms.Button();
|
||||
this.tabPageAdvanced = new System.Windows.Forms.TabPage();
|
||||
this.tableLayoutPanelAdvanced = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.groupBoxClick = new System.Windows.Forms.GroupBox();
|
||||
|
@ -67,6 +83,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.checkBoxOpenItemWithOneClick = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxSizeAndLocation = new System.Windows.Forms.GroupBox();
|
||||
this.tableLayoutPanelSizeAndLocation = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.checkBoxAppearAtTheBottomLeft = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxShowInTaskbar = new System.Windows.Forms.CheckBox();
|
||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.numericUpDownSizeInPercentage = new System.Windows.Forms.NumericUpDown();
|
||||
|
@ -274,7 +291,6 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.buttonOk = new System.Windows.Forms.Button();
|
||||
this.buttonCancel = new System.Windows.Forms.Button();
|
||||
this.colorDialog = new System.Windows.Forms.ColorDialog();
|
||||
this.checkBoxAppearAtTheBottomLeft = new System.Windows.Forms.CheckBox();
|
||||
this.tableLayoutPanelMain.SuspendLayout();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.tabPageGeneral.SuspendLayout();
|
||||
|
@ -291,6 +307,14 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.tableLayoutPanelHotkey.SuspendLayout();
|
||||
this.groupBoxLanguage.SuspendLayout();
|
||||
this.tableLayoutPanelLanguage.SuspendLayout();
|
||||
this.tabControlFolders.SuspendLayout();
|
||||
this.tableLayoutPanelFoldersInRootFolder.SuspendLayout();
|
||||
this.tableLayoutPanel8.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDownClearCacheIfMoreThanThisNumberOfItems)).BeginInit();
|
||||
this.groupBoxFoldersInRootFolder.SuspendLayout();
|
||||
this.tableLayoutPanel7.SuspendLayout();
|
||||
this.tableLayoutPanel6.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridViewFolders)).BeginInit();
|
||||
this.tabPageAdvanced.SuspendLayout();
|
||||
this.tableLayoutPanelAdvanced.SuspendLayout();
|
||||
this.groupBoxClick.SuspendLayout();
|
||||
|
@ -422,6 +446,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
// tabControl
|
||||
//
|
||||
this.tabControl.Controls.Add(this.tabPageGeneral);
|
||||
this.tabControl.Controls.Add(this.tabControlFolders);
|
||||
this.tabControl.Controls.Add(this.tabPageAdvanced);
|
||||
this.tabControl.Controls.Add(this.tabPageExpert);
|
||||
this.tabControl.Controls.Add(this.tabPageCustomize);
|
||||
|
@ -833,6 +858,239 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.comboBoxLanguage.Size = new System.Drawing.Size(200, 23);
|
||||
this.comboBoxLanguage.TabIndex = 0;
|
||||
//
|
||||
// tabControlFolders
|
||||
//
|
||||
this.tabControlFolders.Controls.Add(this.tableLayoutPanelFoldersInRootFolder);
|
||||
this.tabControlFolders.Location = new System.Drawing.Point(4, 24);
|
||||
this.tabControlFolders.Name = "tabControlFolders";
|
||||
this.tabControlFolders.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabControlFolders.Size = new System.Drawing.Size(414, 413);
|
||||
this.tabControlFolders.TabIndex = 2;
|
||||
this.tabControlFolders.Text = "tabControlFolders";
|
||||
this.tabControlFolders.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tableLayoutPanelFoldersInRootFolder
|
||||
//
|
||||
this.tableLayoutPanelFoldersInRootFolder.AutoSize = true;
|
||||
this.tableLayoutPanelFoldersInRootFolder.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.tableLayoutPanelFoldersInRootFolder.ColumnCount = 1;
|
||||
this.tableLayoutPanelFoldersInRootFolder.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.tableLayoutPanel8, 0, 2);
|
||||
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.checkBoxCacheMainMenu, 0, 1);
|
||||
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.groupBoxFoldersInRootFolder, 0, 0);
|
||||
this.tableLayoutPanelFoldersInRootFolder.Controls.Add(this.buttonDefaultFolders, 0, 3);
|
||||
this.tableLayoutPanelFoldersInRootFolder.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanelFoldersInRootFolder.Location = new System.Drawing.Point(3, 3);
|
||||
this.tableLayoutPanelFoldersInRootFolder.Name = "tableLayoutPanelFoldersInRootFolder";
|
||||
this.tableLayoutPanelFoldersInRootFolder.RowCount = 4;
|
||||
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanelFoldersInRootFolder.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanelFoldersInRootFolder.Size = new System.Drawing.Size(408, 407);
|
||||
this.tableLayoutPanelFoldersInRootFolder.TabIndex = 1;
|
||||
//
|
||||
// tableLayoutPanel8
|
||||
//
|
||||
this.tableLayoutPanel8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tableLayoutPanel8.AutoSize = true;
|
||||
this.tableLayoutPanel8.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.tableLayoutPanel8.ColumnCount = 2;
|
||||
this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
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.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tableLayoutPanel8.Name = "tableLayoutPanel8";
|
||||
this.tableLayoutPanel8.RowCount = 1;
|
||||
this.tableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanel8.Size = new System.Drawing.Size(408, 29);
|
||||
this.tableLayoutPanel8.TabIndex = 3;
|
||||
//
|
||||
// numericUpDownClearCacheIfMoreThanThisNumberOfItems
|
||||
//
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.Location = new System.Drawing.Point(3, 3);
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.Maximum = new decimal(new int[] {
|
||||
5000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.Minimum = new decimal(new int[] {
|
||||
200,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.Name = "numericUpDownClearCacheIfMoreThanThisNumberOfItems";
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.Size = new System.Drawing.Size(55, 23);
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.TabIndex = 1;
|
||||
this.numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = new decimal(new int[] {
|
||||
1000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// labelClearCacheIfMoreThanThisNumberOfItems
|
||||
//
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.AutoSize = true;
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.Location = new System.Drawing.Point(64, 7);
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.MaximumSize = new System.Drawing.Size(330, 0);
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.Name = "labelClearCacheIfMoreThanThisNumberOfItems";
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.Size = new System.Drawing.Size(260, 15);
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.TabIndex = 0;
|
||||
this.labelClearCacheIfMoreThanThisNumberOfItems.Text = "labelClearCacheIfMoreThanThisNumberOfItems";
|
||||
//
|
||||
// checkBoxCacheMainMenu
|
||||
//
|
||||
this.checkBoxCacheMainMenu.AutoSize = true;
|
||||
this.checkBoxCacheMainMenu.Location = new System.Drawing.Point(3, 322);
|
||||
this.checkBoxCacheMainMenu.Name = "checkBoxCacheMainMenu";
|
||||
this.checkBoxCacheMainMenu.Size = new System.Drawing.Size(168, 19);
|
||||
this.checkBoxCacheMainMenu.TabIndex = 2;
|
||||
this.checkBoxCacheMainMenu.Text = "checkBoxCacheMainMenu";
|
||||
this.checkBoxCacheMainMenu.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxFoldersInRootFolder
|
||||
//
|
||||
this.groupBoxFoldersInRootFolder.AutoSize = true;
|
||||
this.groupBoxFoldersInRootFolder.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.groupBoxFoldersInRootFolder.Controls.Add(this.tableLayoutPanel7);
|
||||
this.groupBoxFoldersInRootFolder.Location = new System.Drawing.Point(3, 3);
|
||||
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.TabIndex = 0;
|
||||
this.groupBoxFoldersInRootFolder.TabStop = false;
|
||||
this.groupBoxFoldersInRootFolder.Text = "groupBox1";
|
||||
//
|
||||
// tableLayoutPanel7
|
||||
//
|
||||
this.tableLayoutPanel7.AutoSize = true;
|
||||
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.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.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.TabIndex = 0;
|
||||
//
|
||||
// tableLayoutPanel6
|
||||
//
|
||||
this.tableLayoutPanel6.AutoSize = true;
|
||||
this.tableLayoutPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.tableLayoutPanel6.ColumnCount = 3;
|
||||
this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tableLayoutPanel6.Controls.Add(this.buttonAddFolderToRootFolder, 0, 0);
|
||||
this.tableLayoutPanel6.Controls.Add(this.buttonRemoveFolder, 2, 0);
|
||||
this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel6.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel6.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tableLayoutPanel6.Name = "tableLayoutPanel6";
|
||||
this.tableLayoutPanel6.RowCount = 1;
|
||||
this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel6.Size = new System.Drawing.Size(394, 31);
|
||||
this.tableLayoutPanel6.TabIndex = 2;
|
||||
//
|
||||
// buttonAddFolderToRootFolder
|
||||
//
|
||||
this.buttonAddFolderToRootFolder.AutoSize = true;
|
||||
this.buttonAddFolderToRootFolder.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.buttonAddFolderToRootFolder.Location = new System.Drawing.Point(2, 3);
|
||||
this.buttonAddFolderToRootFolder.Margin = new System.Windows.Forms.Padding(2, 3, 3, 3);
|
||||
this.buttonAddFolderToRootFolder.MinimumSize = new System.Drawing.Size(75, 23);
|
||||
this.buttonAddFolderToRootFolder.Name = "buttonAddFolderToRootFolder";
|
||||
this.buttonAddFolderToRootFolder.Size = new System.Drawing.Size(178, 25);
|
||||
this.buttonAddFolderToRootFolder.TabIndex = 0;
|
||||
this.buttonAddFolderToRootFolder.Text = "buttonAddFolderToRootFolder";
|
||||
this.buttonAddFolderToRootFolder.UseVisualStyleBackColor = true;
|
||||
this.buttonAddFolderToRootFolder.Click += new System.EventHandler(this.ButtonAddFolderToRootFolder_Click);
|
||||
//
|
||||
// buttonRemoveFolder
|
||||
//
|
||||
this.buttonRemoveFolder.AutoSize = true;
|
||||
this.buttonRemoveFolder.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.buttonRemoveFolder.Location = new System.Drawing.Point(262, 3);
|
||||
this.buttonRemoveFolder.MinimumSize = new System.Drawing.Size(75, 23);
|
||||
this.buttonRemoveFolder.Name = "buttonRemoveFolder";
|
||||
this.buttonRemoveFolder.Size = new System.Drawing.Size(129, 25);
|
||||
this.buttonRemoveFolder.TabIndex = 2;
|
||||
this.buttonRemoveFolder.Text = "buttonRemoveFolder";
|
||||
this.buttonRemoveFolder.UseVisualStyleBackColor = true;
|
||||
this.buttonRemoveFolder.Click += new System.EventHandler(this.ButtonRemoveFolder_Click);
|
||||
//
|
||||
// dataGridViewFolders
|
||||
//
|
||||
this.dataGridViewFolders.AllowUserToAddRows = false;
|
||||
this.dataGridViewFolders.AllowUserToDeleteRows = false;
|
||||
this.dataGridViewFolders.AllowUserToResizeColumns = false;
|
||||
this.dataGridViewFolders.AllowUserToResizeRows = false;
|
||||
this.dataGridViewFolders.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dataGridViewFolders.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridViewFolders.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.ColumnFolder,
|
||||
this.ColumnRecursiveLevel,
|
||||
this.ColumnOnlyFiles});
|
||||
this.dataGridViewFolders.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridViewFolders.Location = new System.Drawing.Point(3, 34);
|
||||
this.dataGridViewFolders.Name = "dataGridViewFolders";
|
||||
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.TabIndex = 1;
|
||||
this.dataGridViewFolders.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.DataGridViewFolders_CellValidating);
|
||||
this.dataGridViewFolders.SelectionChanged += new System.EventHandler(this.DataGridViewFolders_SelectionChanged);
|
||||
this.dataGridViewFolders.MouseClick += new System.Windows.Forms.MouseEventHandler(this.DataGridViewFolders_MouseClick);
|
||||
//
|
||||
// ColumnFolder
|
||||
//
|
||||
this.ColumnFolder.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.ColumnFolder.HeaderText = "ColumnFolder";
|
||||
this.ColumnFolder.Name = "ColumnFolder";
|
||||
//
|
||||
// ColumnRecursiveLevel
|
||||
//
|
||||
this.ColumnRecursiveLevel.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
|
||||
this.ColumnRecursiveLevel.HeaderText = "ColumnRecursiveLevel";
|
||||
this.ColumnRecursiveLevel.Name = "ColumnRecursiveLevel";
|
||||
this.ColumnRecursiveLevel.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.ColumnRecursiveLevel.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.ColumnRecursiveLevel.Width = 152;
|
||||
//
|
||||
// ColumnOnlyFiles
|
||||
//
|
||||
this.ColumnOnlyFiles.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
|
||||
this.ColumnOnlyFiles.HeaderText = "ColumnOnlyFiles";
|
||||
this.ColumnOnlyFiles.Name = "ColumnOnlyFiles";
|
||||
this.ColumnOnlyFiles.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.ColumnOnlyFiles.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.ColumnOnlyFiles.Width = 123;
|
||||
//
|
||||
// buttonDefaultFolders
|
||||
//
|
||||
this.buttonDefaultFolders.AutoSize = true;
|
||||
this.buttonDefaultFolders.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.buttonDefaultFolders.Location = new System.Drawing.Point(9, 382);
|
||||
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";
|
||||
this.buttonDefaultFolders.Size = new System.Drawing.Size(129, 25);
|
||||
this.buttonDefaultFolders.TabIndex = 0;
|
||||
this.buttonDefaultFolders.Text = "buttonDefaultFolders";
|
||||
this.buttonDefaultFolders.UseVisualStyleBackColor = true;
|
||||
this.buttonDefaultFolders.Click += new System.EventHandler(this.ButtonClearFolders_Click);
|
||||
//
|
||||
// tabPageAdvanced
|
||||
//
|
||||
this.tabPageAdvanced.Controls.Add(this.tableLayoutPanelAdvanced);
|
||||
|
@ -945,6 +1203,17 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.tableLayoutPanelSizeAndLocation.Size = new System.Drawing.Size(394, 162);
|
||||
this.tableLayoutPanelSizeAndLocation.TabIndex = 0;
|
||||
//
|
||||
// checkBoxAppearAtTheBottomLeft
|
||||
//
|
||||
this.checkBoxAppearAtTheBottomLeft.AutoSize = true;
|
||||
this.checkBoxAppearAtTheBottomLeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.checkBoxAppearAtTheBottomLeft.Location = new System.Drawing.Point(3, 140);
|
||||
this.checkBoxAppearAtTheBottomLeft.Name = "checkBoxAppearAtTheBottomLeft";
|
||||
this.checkBoxAppearAtTheBottomLeft.Size = new System.Drawing.Size(388, 19);
|
||||
this.checkBoxAppearAtTheBottomLeft.TabIndex = 2;
|
||||
this.checkBoxAppearAtTheBottomLeft.Text = "checkBoxAppearAtTheBottomLeft";
|
||||
this.checkBoxAppearAtTheBottomLeft.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxShowInTaskbar
|
||||
//
|
||||
this.checkBoxShowInTaskbar.AutoSize = true;
|
||||
|
@ -3802,17 +4071,6 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
|
||||
//
|
||||
// checkBoxAppearAtTheBottomLeft
|
||||
//
|
||||
this.checkBoxAppearAtTheBottomLeft.AutoSize = true;
|
||||
this.checkBoxAppearAtTheBottomLeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.checkBoxAppearAtTheBottomLeft.Location = new System.Drawing.Point(3, 140);
|
||||
this.checkBoxAppearAtTheBottomLeft.Name = "checkBoxAppearAtTheBottomLeft";
|
||||
this.checkBoxAppearAtTheBottomLeft.Size = new System.Drawing.Size(388, 19);
|
||||
this.checkBoxAppearAtTheBottomLeft.TabIndex = 2;
|
||||
this.checkBoxAppearAtTheBottomLeft.Text = "checkBoxAppearAtTheBottomLeft";
|
||||
this.checkBoxAppearAtTheBottomLeft.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// SettingsForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
|
@ -3858,6 +4116,20 @@ namespace SystemTrayMenu.UserInterface
|
|||
this.groupBoxLanguage.ResumeLayout(false);
|
||||
this.groupBoxLanguage.PerformLayout();
|
||||
this.tableLayoutPanelLanguage.ResumeLayout(false);
|
||||
this.tabControlFolders.ResumeLayout(false);
|
||||
this.tabControlFolders.PerformLayout();
|
||||
this.tableLayoutPanelFoldersInRootFolder.ResumeLayout(false);
|
||||
this.tableLayoutPanelFoldersInRootFolder.PerformLayout();
|
||||
this.tableLayoutPanel8.ResumeLayout(false);
|
||||
this.tableLayoutPanel8.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDownClearCacheIfMoreThanThisNumberOfItems)).EndInit();
|
||||
this.groupBoxFoldersInRootFolder.ResumeLayout(false);
|
||||
this.groupBoxFoldersInRootFolder.PerformLayout();
|
||||
this.tableLayoutPanel7.ResumeLayout(false);
|
||||
this.tableLayoutPanel7.PerformLayout();
|
||||
this.tableLayoutPanel6.ResumeLayout(false);
|
||||
this.tableLayoutPanel6.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridViewFolders)).EndInit();
|
||||
this.tabPageAdvanced.ResumeLayout(false);
|
||||
this.tabPageAdvanced.PerformLayout();
|
||||
this.tableLayoutPanelAdvanced.ResumeLayout(false);
|
||||
|
@ -4286,5 +4558,21 @@ namespace SystemTrayMenu.UserInterface
|
|||
private System.Windows.Forms.CheckBox checkBoxStayOpenWhenFocusLostAfterEnterPressed;
|
||||
private System.Windows.Forms.CheckBox checkBoxShowInTaskbar;
|
||||
private System.Windows.Forms.CheckBox checkBoxAppearAtTheBottomLeft;
|
||||
private System.Windows.Forms.TabPage tabControlFolders;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelFoldersInRootFolder;
|
||||
private System.Windows.Forms.GroupBox groupBoxFoldersInRootFolder;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel7;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel6;
|
||||
private System.Windows.Forms.Button buttonAddFolderToRootFolder;
|
||||
private System.Windows.Forms.Button buttonRemoveFolder;
|
||||
private System.Windows.Forms.DataGridView dataGridViewFolders;
|
||||
private System.Windows.Forms.Button buttonDefaultFolders;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnFolder;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnRecursiveLevel;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnOnlyFiles;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel8;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDownClearCacheIfMoreThanThisNumberOfItems;
|
||||
private System.Windows.Forms.Label labelClearCacheIfMoreThanThisNumberOfItems;
|
||||
private System.Windows.Forms.CheckBox checkBoxCacheMainMenu;
|
||||
}
|
||||
}
|
|
@ -14,6 +14,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using SystemTrayMenu.Properties;
|
||||
using SystemTrayMenu.UserInterface.FolderBrowseDialog;
|
||||
using SystemTrayMenu.Utilities;
|
||||
using Windows.ApplicationModel;
|
||||
using static SystemTrayMenu.UserInterface.HotkeyTextboxControl.HotkeyControl;
|
||||
|
@ -128,7 +129,17 @@ namespace SystemTrayMenu.UserInterface
|
|||
groupBoxHotkey.Text = Translator.GetText("Hotkey");
|
||||
buttonHotkeyDefault.Text = Translator.GetText("Default");
|
||||
groupBoxLanguage.Text = Translator.GetText("Language");
|
||||
tabControlFolders.Text = Translator.GetText("Folders");
|
||||
groupBoxFoldersInRootFolder.Text = Translator.GetText("Add folders to main menu");
|
||||
buttonAddFolderToRootFolder.Text = Translator.GetText("Add folder");
|
||||
buttonRemoveFolder.Text = Translator.GetText("Remove folder");
|
||||
ColumnFolder.HeaderText = Translator.GetText("Folder paths");
|
||||
ColumnRecursiveLevel.HeaderText = Translator.GetText("Recursive");
|
||||
ColumnOnlyFiles.HeaderText = Translator.GetText("Only Files");
|
||||
buttonDefaultFolders.Text = Translator.GetText("Default");
|
||||
groupBoxClick.Text = Translator.GetText("Click");
|
||||
checkBoxCacheMainMenu.Text = Translator.GetText("Cache main menu");
|
||||
labelClearCacheIfMoreThanThisNumberOfItems.Text = Translator.GetText("Clear cache if more than this number of items");
|
||||
checkBoxOpenItemWithOneClick.Text = Translator.GetText("Single click to start item");
|
||||
groupBoxSizeAndLocation.Text = Translator.GetText("Size and location");
|
||||
labelSize.Text = $"% {Translator.GetText("Size")}";
|
||||
|
@ -266,6 +277,29 @@ namespace SystemTrayMenu.UserInterface
|
|||
|
||||
checkBoxStoreConfigAtAssemblyLocation.Checked = CustomSettingsProvider.IsActivatedConfigPathAssembly();
|
||||
|
||||
try
|
||||
{
|
||||
foreach (string pathAndRecursivString in Properties.Settings.Default.PathsAddToMainMenu.Split(@"|"))
|
||||
{
|
||||
if (string.IsNullOrEmpty(pathAndRecursivString))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
string pathAddToMainMenu = pathAndRecursivString.Split("recursiv:")[0].Trim();
|
||||
bool recursive = pathAndRecursivString.Split("recursiv:")[1].StartsWith("True");
|
||||
bool onlyFiles = pathAndRecursivString.Split("onlyFiles:")[1].StartsWith("True");
|
||||
dataGridViewFolders.Rows.Add(pathAddToMainMenu, recursive, onlyFiles);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Warn("PathsAddToMainMenu", ex);
|
||||
}
|
||||
|
||||
checkBoxCacheMainMenu.Checked = Settings.Default.CacheMainMenu;
|
||||
numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value = Settings.Default.ClearCacheIfMoreThanThisNumberOfItems;
|
||||
|
||||
checkBoxOpenItemWithOneClick.Checked = Settings.Default.OpenItemWithOneClick;
|
||||
|
||||
numericUpDownSizeInPercentage.Minimum = 100;
|
||||
|
@ -599,6 +633,8 @@ namespace SystemTrayMenu.UserInterface
|
|||
tabControl.Size = new Size(
|
||||
tabControl.Size.Width,
|
||||
tableLayoutPanelGeneral.Size.Height + (int)(50 * Scaling.Factor));
|
||||
|
||||
dataGridViewFolders.ClearSelection();
|
||||
}
|
||||
|
||||
private void ButtonOk_Click(object sender, EventArgs e)
|
||||
|
@ -637,6 +673,22 @@ namespace SystemTrayMenu.UserInterface
|
|||
}
|
||||
}
|
||||
|
||||
SaveFolders();
|
||||
void SaveFolders()
|
||||
{
|
||||
Settings.Default.PathsAddToMainMenu = string.Empty;
|
||||
foreach (DataGridViewRow row in dataGridViewFolders.Rows)
|
||||
{
|
||||
string pathAddToMainMenu = row.Cells[0].Value.ToString();
|
||||
bool recursiv = (bool)row.Cells[1].Value;
|
||||
bool onlyFiles = (bool)row.Cells[2].Value;
|
||||
Settings.Default.PathsAddToMainMenu += $"{pathAddToMainMenu} recursiv:{recursiv} onlyFiles:{onlyFiles}|";
|
||||
}
|
||||
}
|
||||
|
||||
Settings.Default.CacheMainMenu = checkBoxCacheMainMenu.Checked;
|
||||
Settings.Default.ClearCacheIfMoreThanThisNumberOfItems = (int)numericUpDownClearCacheIfMoreThanThisNumberOfItems.Value;
|
||||
|
||||
Settings.Default.OpenItemWithOneClick = checkBoxOpenItemWithOneClick.Checked;
|
||||
Settings.Default.AppearAtMouseLocation = checkBoxAppearAtMouseLocation.Checked;
|
||||
Settings.Default.SizeInPercentage = (int)numericUpDownSizeInPercentage.Value;
|
||||
|
@ -974,5 +1026,63 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,6 +57,24 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="ColumnFolder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ColumnRecursiveLevel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ColumnOnlyFiles.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ColumnFolder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ColumnRecursiveLevel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ColumnOnlyFiles.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace SystemTrayMenu.Utilities
|
|||
public static bool ClearIfCacheTooBig()
|
||||
{
|
||||
bool cleared = false;
|
||||
if (DictIconCache.Count > 200)
|
||||
if (DictIconCache.Count > Properties.Settings.Default.ClearCacheIfMoreThanThisNumberOfItems)
|
||||
{
|
||||
Dispose();
|
||||
DictIconCache.Clear();
|
||||
|
|
Loading…
Reference in a new issue