Changeset 3290 for trunk/sources
- Timestamp:
- 04/09/10 02:04:57 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/OperatorsMenuItem.cs
r3163 r3290 48 48 if (menuItem != null) { 49 49 menuItem.CheckOnClick = true; 50 menuItem.Checked = true;50 menuItem.Checked = Properties.Settings.Default.ShowOperatorsSidebar; 51 51 } 52 52 } 53 53 54 54 private void MainForm_ViewShown(object sender, ViewShownEventArgs e) { 55 if ((e.View is OperatorsSidebar) && (menuItem != null)) 55 if ((e.View is OperatorsSidebar) && (menuItem != null)) { 56 56 menuItem.Checked = true; 57 Properties.Settings.Default.ShowOperatorsSidebar = true; 58 Properties.Settings.Default.Save(); 59 } 57 60 } 58 61 private void MainForm_ViewHidden(object sender, ViewEventArgs e) { 59 if ((e.View is OperatorsSidebar) && (menuItem != null)) 62 if ((e.View is OperatorsSidebar) && (menuItem != null)) { 60 63 menuItem.Checked = false; 64 Properties.Settings.Default.ShowOperatorsSidebar = false; 65 Properties.Settings.Default.Save(); 66 } 61 67 } 62 68 63 69 public override void Execute() { 64 70 var view = MainFormManager.MainForm.Views.OfType<OperatorsSidebar>().FirstOrDefault(); 65 if (view.IsShown) 71 if (view == null) { 72 OperatorsSidebar operatorsSidebar = new OperatorsSidebar(); 73 operatorsSidebar.Dock = DockStyle.Left; 74 operatorsSidebar.Show(); 75 } else if (view.IsShown) { 66 76 view.Hide(); 67 else77 } else { 68 78 view.Show(); 79 } 69 80 } 70 81 } -
trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs
r3163 r3290 47 47 if (version != null) Title += " " + version.Version; 48 48 ViewClosed += new EventHandler<ViewEventArgs>(FileManager.ViewClosed); 49 OperatorsSidebar operatorsSidebar = new OperatorsSidebar(); 50 operatorsSidebar.Dock = DockStyle.Left; 51 operatorsSidebar.Show(); 49 if (Properties.Settings.Default.ShowOperatorsSidebar) { 50 OperatorsSidebar operatorsSidebar = new OperatorsSidebar(); 51 operatorsSidebar.Dock = DockStyle.Left; 52 operatorsSidebar.Show(); 53 } 52 54 if (Properties.Settings.Default.ShowStartPage) { 53 55 StartPage startPage = new StartPage(); -
trunk/sources/HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs
r3163 r3290 35 35 } 36 36 } 37 38 [global::System.Configuration.UserScopedSettingAttribute()] 39 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 [global::System.Configuration.DefaultSettingValueAttribute("False")] 41 public bool ShowOperatorsSidebar { 42 get { 43 return ((bool)(this["ShowOperatorsSidebar"])); 44 } 45 set { 46 this["ShowOperatorsSidebar"] = value; 47 } 48 } 37 49 } 38 50 } -
trunk/sources/HeuristicLab.Optimizer/3.3/Properties/Settings.settings
r3163 r3290 6 6 <Value Profile="(Default)">True</Value> 7 7 </Setting> 8 <Setting Name="ShowOperatorsSidebar" Type="System.Boolean" Scope="User"> 9 <Value Profile="(Default)">False</Value> 10 </Setting> 8 11 </Settings> 9 12 </SettingsFile> -
trunk/sources/HeuristicLab.Optimizer/3.3/app.config
r3163 r3290 11 11 <value>True</value> 12 12 </setting> 13 <setting name="ShowOperatorsSidebar" serializeAs="String"> 14 <value>False</value> 15 </setting> 13 16 </HeuristicLab.Optimizer.Properties.Settings> 14 17 </userSettings> -
trunk/sources/HeuristicLab.SequentialEngine/3.3/SequentialEngine.cs
r3289 r3290 63 63 } 64 64 if (operation.Operator.Breakpoint) { 65 Log.LogMessage(string.Format("Breakpoint: {0} ({1})", operation.Operator.Name,operation.Operator.ItemName));65 Log.LogMessage(string.Format("Breakpoint: {0}", operation.Operator.Name != string.Empty ? operation.Operator.Name : operation.Operator.ItemName)); 66 66 Pause(); 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.