Ejemplo n.º 1
0
 private void editFolder(Toolbar folder)
 {
     string folderId = folders.Single(kv => kv.Value.Equals(folder)).Key;
     FolderSettings folderSettings = savedFolderSettings[folderId];
     FolderSettingsDialog folderSettingsDialog = new FolderSettingsDialog(folderSettings.texturePath, folderSettings.toolTip);
     folderSettingsDialog.OnOkClicked += () => {
         folderSettings.texturePath = folderSettingsDialog.TexturePath;
         folderSettings.toolTip = folderSettingsDialog.ToolTip;
         Button folderButton = folderButtons.Single(kv => kv.Value.Equals(folder)).Key;
         folderButton.command.TexturePath = folderSettings.texturePath;
         folderButton.command.ToolTip = folderSettings.toolTip;
         fireChange();
     };
 }
Ejemplo n.º 2
0
 private void createFolder()
 {
     FolderSettingsDialog folderSettingsDialog = new FolderSettingsDialog("000_Toolbar/folder", "New Folder");
     folderSettingsDialog.OnOkClicked += () => {
         createFolder("folder_" + new System.Random().Next(int.MaxValue), folderSettingsDialog.TexturePath, folderSettingsDialog.ToolTip, true);
     };
 }
Ejemplo n.º 3
0
 private void editFolder(Toolbar folder)
 {
     string folderId = folders.Single(kv => kv.Value.Equals(folder)).Key;
     string toolTip = savedFolderSettings[folderId].toolTip;
     FolderSettingsDialog folderSettingsDialog = new FolderSettingsDialog(toolTip);
     folderSettingsDialog.OnOkClicked += () => {
         toolTip = folderSettingsDialog.ToolTip;
         savedFolderSettings[folderId].toolTip = toolTip;
         Button folderButton = folderButtons.Single(kv => kv.Value.Equals(folder)).Key;
         folderButton.ToolTip = toolTip;
         fireChange();
     };
 }