Changeset 3768
- Timestamp:
- 05/11/10 14:45:25 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimizer/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/OperatorsMenuItem.cs
r3298 r3768 73 73 operatorsSidebar.Dock = DockStyle.Left; 74 74 operatorsSidebar.Show(); 75 operatorsSidebar.Collapsed = Properties.Settings.Default.CollapseOperatorsSidebar; 75 76 } else if (view.IsShown) { 76 77 view.Hide(); -
trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs
r3741 r3768 69 69 ContentManager.Initialize(new PersistenceContentManager()); 70 70 71 WindowState = Properties.Settings.Default.ShowMaximized ? FormWindowState.Maximized : FormWindowState.Normal; 72 71 73 clipboard = new Clipboard<IItem>(); 72 74 clipboard.Dock = DockStyle.Left; 75 clipboard.Collapsed = Properties.Settings.Default.CollapseClipboard; 73 76 if (Properties.Settings.Default.ShowClipboard) { 74 77 clipboard.Show(); … … 78 81 operatorsSidebar.Dock = DockStyle.Left; 79 82 operatorsSidebar.Show(); 83 operatorsSidebar.Collapsed = Properties.Settings.Default.CollapseOperatorsSidebar; 80 84 } 81 85 if (Properties.Settings.Default.ShowStartPage) { … … 91 95 e.Cancel = true; 92 96 } 97 } 98 protected override void OnClosed(EventArgs e) { 99 base.OnClosed(e); 100 Properties.Settings.Default.ShowMaximized = WindowState == FormWindowState.Maximized; 101 Properties.Settings.Default.CollapseClipboard = clipboard.Collapsed; 102 OperatorsSidebar operatorsSidebar = MainFormManager.MainForm.Views.OfType<OperatorsSidebar>().FirstOrDefault(); 103 if (operatorsSidebar != null) Properties.Settings.Default.CollapseOperatorsSidebar = operatorsSidebar.Collapsed; 104 Properties.Settings.Default.Save(); 93 105 } 94 106 -
trunk/sources/HeuristicLab.Optimizer/3.3/Properties/Settings.Designer.cs
r3292 r3768 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:2.0.50727.4 9274 // Runtime Version:2.0.50727.4200 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 59 59 } 60 60 } 61 62 [global::System.Configuration.UserScopedSettingAttribute()] 63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 64 [global::System.Configuration.DefaultSettingValueAttribute("True")] 65 public bool ShowMaximized { 66 get { 67 return ((bool)(this["ShowMaximized"])); 68 } 69 set { 70 this["ShowMaximized"] = value; 71 } 72 } 73 74 [global::System.Configuration.UserScopedSettingAttribute()] 75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 76 [global::System.Configuration.DefaultSettingValueAttribute("True")] 77 public bool CollapseClipboard { 78 get { 79 return ((bool)(this["CollapseClipboard"])); 80 } 81 set { 82 this["CollapseClipboard"] = value; 83 } 84 } 85 86 [global::System.Configuration.UserScopedSettingAttribute()] 87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 88 [global::System.Configuration.DefaultSettingValueAttribute("False")] 89 public bool CollapseOperatorsSidebar { 90 get { 91 return ((bool)(this["CollapseOperatorsSidebar"])); 92 } 93 set { 94 this["CollapseOperatorsSidebar"] = value; 95 } 96 } 61 97 } 62 98 } -
trunk/sources/HeuristicLab.Optimizer/3.3/Properties/Settings.settings
r3292 r3768 12 12 <Value Profile="(Default)">True</Value> 13 13 </Setting> 14 <Setting Name="ShowMaximized" Type="System.Boolean" Scope="User"> 15 <Value Profile="(Default)">True</Value> 16 </Setting> 17 <Setting Name="CollapseClipboard" Type="System.Boolean" Scope="User"> 18 <Value Profile="(Default)">True</Value> 19 </Setting> 20 <Setting Name="CollapseOperatorsSidebar" Type="System.Boolean" Scope="User"> 21 <Value Profile="(Default)">False</Value> 22 </Setting> 14 23 </Settings> 15 24 </SettingsFile> -
trunk/sources/HeuristicLab.Optimizer/3.3/app.config
r3292 r3768 17 17 <value>True</value> 18 18 </setting> 19 <setting name="ShowMaximized" serializeAs="String"> 20 <value>True</value> 21 </setting> 22 <setting name="CollapseClipboard" serializeAs="String"> 23 <value>True</value> 24 </setting> 25 <setting name="CollapseOperatorsSidebar" serializeAs="String"> 26 <value>False</value> 27 </setting> 19 28 </HeuristicLab.Optimizer.Properties.Settings> 20 29 </userSettings>
Note: See TracChangeset
for help on using the changeset viewer.