Changeset 11903
- Timestamp:
- 02/05/15 10:33:54 (10 years ago)
- Location:
- stable
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11346
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Job.cs
r11170 r11903 101 101 private void RegisterEventHandlers() { 102 102 Tasks.ItemsAdded += TasksOnItemsChanged; 103 Tasks.ItemsRemoved += TasksOnItems Changed;103 Tasks.ItemsRemoved += TasksOnItemsRemoved; 104 104 Tasks.ItemsReplaced += TasksOnItemsChanged; 105 105 Tasks.CollectionReset += TasksOnItemsChanged; … … 118 118 task.Value.PropertyChanged += TaskOnPropertyChanged; 119 119 task.Value.ToStringChanged += TaskOnToStringChanged; 120 } 121 OnTasksChanged(); 122 OnToStringChanged(); 123 } 124 125 private void TasksOnItemsRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<Task>> e) { 126 foreach (var task in e.Items) { 127 task.Value.PropertyChanged -= TaskOnPropertyChanged; 128 task.Value.ToStringChanged -= TaskOnToStringChanged; 120 129 } 121 130 OnTasksChanged(); -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views merged: 11346
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableConditionView.cs
r11170 r11903 54 54 private void RegisterVariableNamesViewContentEvents() { 55 55 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 57 57 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 58 58 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 64 64 private void DeregisterVariableNamesViewContentEvents() { 65 65 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 66 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);66 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 67 67 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 68 68 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 153 153 } 154 154 155 private void VariableNames_Removed(object sender, CollectionItemsChangedEventArgs<StringValue> e) { 156 foreach (var newVar in e.Items) 157 newVar.ValueChanged -= new EventHandler(Variable_ValueChanged); 158 UpdateContent(); 159 } 160 155 161 private void Variable_ValueChanged(object sender, EventArgs e) { 156 162 UpdateContent(); -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs
r11869 r11903 55 55 private void RegisterVariableNamesViewContentEvents() { 56 56 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 57 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);57 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 58 58 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 59 59 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 66 66 private void DeregisterVariableNamesViewContentEvents() { 67 67 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 68 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);68 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 69 69 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 70 70 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 118 118 } 119 119 120 private void VariableNames_Removed(object sender, CollectionItemsChangedEventArgs<StringValue> e) { 121 foreach (var newVar in e.Items) 122 newVar.ValueChanged -= new EventHandler(Variable_ValueChanged); 123 UpdateContent(); 124 } 125 120 126 private void Variable_ValueChanged(object sender, EventArgs e) { 121 127 UpdateContent(); -
stable/HeuristicLab.Problems.Scheduling.Views/3.3/JobShopSchedulingProblemView.cs
r11170 r11903 52 52 Content.JobDataParameter.ValueChanged -= JobDataParameterOnValueChanged; 53 53 Content.JobData.ItemsAdded -= JobsOnChanged; 54 Content.JobData.ItemsRemoved -= JobsOn Changed;54 Content.JobData.ItemsRemoved -= JobsOnRemoved; 55 55 Content.JobData.ItemsReplaced -= JobsOnChanged; 56 56 Content.JobData.CollectionReset -= JobsOnChanged; … … 64 64 Content.JobDataParameter.ValueChanged += JobDataParameterOnValueChanged; 65 65 Content.JobData.ItemsAdded += JobsOnChanged; 66 Content.JobData.ItemsRemoved += JobsOn Changed;66 Content.JobData.ItemsRemoved += JobsOnRemoved; 67 67 Content.JobData.ItemsReplaced += JobsOnChanged; 68 68 Content.JobData.CollectionReset += JobsOnChanged; … … 80 80 } 81 81 82 private void JobsOnRemoved(object sender, CollectionItemsChangedEventArgs<IndexedItem<Job>> e) { 83 foreach (var job in e.Items) 84 job.Value.TasksChanged -= JobOnTasksChanged; 85 FillGanttChart(); 86 } 87 82 88 private void JobDataParameterOnValueChanged(object sender, EventArgs e) { 83 89 Content.JobData.ItemsAdded += JobsOnChanged; 84 Content.JobData.ItemsRemoved += JobsOn Changed;90 Content.JobData.ItemsRemoved += JobsOnRemoved; 85 91 Content.JobData.ItemsReplaced += JobsOnChanged; 86 92 Content.JobData.CollectionReset += JobsOnChanged;
Note: See TracChangeset
for help on using the changeset viewer.