Changeset 4982 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views
- Timestamp:
- 11/28/10 23:03:05 (14 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Files:
-
- 5 added
- 5 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Property svn:ignore
-
old new 2 2 obj 3 3 HeuristicLab.Problems.MetaOptimization.Views-3.3.csproj.user 4 HeuristicLabProblemsMetaOptimizationViewsPlugin.cs
-
- Property svn:ignore
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/HeuristicLab.Problems.MetaOptimization.Views-3.3.csproj
r4981 r4982 85 85 </ItemGroup> 86 86 <ItemGroup> 87 <None Include="HeuristicLabProblemsMetaOptimizationViewsPlugin.cs.frame" /> 87 88 <Compile Include="OptimizableView.cs"> 88 89 <SubType>UserControl</SubType> … … 90 91 <Compile Include="OptimizableView.Designer.cs"> 91 92 <DependentUpon>OptimizableView.cs</DependentUpon> 93 </Compile> 94 <None Include="Properties\AssemblyInfo.cs.frame" /> 95 <Compile Include="RootValueConfigurationView.cs"> 96 <SubType>UserControl</SubType> 97 </Compile> 98 <Compile Include="RootValueConfigurationView.Designer.cs"> 99 <DependentUpon>RootValueConfigurationView.cs</DependentUpon> 92 100 </Compile> 93 101 <Compile Include="ValueConfigurationViews\ValueConfigurationCheckedItemList.cs"> … … 126 134 <DependentUpon>OptimizableView.cs</DependentUpon> 127 135 </EmbeddedResource> 136 <EmbeddedResource Include="RootValueConfigurationView.resx"> 137 <DependentUpon>RootValueConfigurationView.cs</DependentUpon> 138 </EmbeddedResource> 128 139 <EmbeddedResource Include="ValueConfigurationViews\NumericRangeView.resx"> 129 140 <DependentUpon>NumericRangeView.cs</DependentUpon> … … 150 161 set ProjectDir=$(ProjectDir) 151 162 set SolutionDir=$(SolutionDir) 152 set Outdir=$(Outdir)</PreBuildEvent> 163 set Outdir=$(Outdir) 164 165 call PreBuildEvent.cmd</PreBuildEvent> 153 166 </PropertyGroup> 154 167 <PropertyGroup> -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ValueConfigurationViews/ValueConfigurationCheckedItemList.cs
r4981 r4982 11 11 using System.Windows.Forms; 12 12 using HeuristicLab.PluginInfrastructure; 13 using HeuristicLab.Collections; 13 14 14 15 namespace HeuristicLab.Problems.MetaOptimization.Views { … … 26 27 27 28 protected override void DeregisterContentEvents() { 28 // TODO: Deregister your event handlers here29 Content.ItemsRemoved -= new Collections.CollectionItemsChangedEventHandler<IValueConfiguration>(Content_ItemsRemoved); 29 30 base.DeregisterContentEvents(); 30 31 } … … 32 33 protected override void RegisterContentEvents() { 33 34 base.RegisterContentEvents(); 34 // TODO: Register your event handlers here35 Content.ItemsRemoved += new Collections.CollectionItemsChangedEventHandler<IValueConfiguration>(Content_ItemsRemoved); 35 36 } 36 37 37 38 #region Event Handlers (Content) 38 // TODO: Put event handlers of the content here 39 private new void Content_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<IValueConfiguration> e) { 40 if (InvokeRequired) { 41 Invoke(new EventHandler<CollectionItemsChangedEventArgs<IValueConfiguration>>(Content_ItemsRemoved), sender, e); 42 } else { 43 base.Content_ItemsRemoved(sender, e); 44 SetEnabledStateOfControls(); 45 } 46 } 39 47 #endregion 40 48 41 49 protected override void OnContentChanged() { 42 50 base.OnContentChanged(); 43 if (Content == null) {44 // TODO: Add code when content has been changed and is null51 if (Content != null) { 52 SetEnabledStateOfControls(); 45 53 } else { 46 // TODO: Add code when content has been changed and is not null47 54 } 48 55 } 49 56 50 51 57 protected override void SetEnabledStateOfControls() { 52 58 base.SetEnabledStateOfControls(); 53 // TODO: Enable or disable controls based on whether the content is null or the view is set readonly 59 if(Content != null) this.removeButton.Enabled = Content.Count > Content.MinItemCount; 60 } 61 62 protected override void itemsListView_SelectedIndexChanged(object sender, EventArgs e) { 63 base.itemsListView_SelectedIndexChanged(sender, e); 64 this.removeButton.Enabled = removeButton.Enabled && (Content.Count > Content.MinItemCount); 54 65 } 55 66 56 67 #region Event Handlers (child controls) 57 // TODO: Put event handlers of child controls here.58 68 #endregion 59 69
Note: See TracChangeset
for help on using the changeset viewer.