client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs
equal
deleted
inserted
replaced
105 an.MouseLeftButtonDown += new MouseButtonEventHandler(an_MouseLeftButtonDown); |
105 an.MouseLeftButtonDown += new MouseButtonEventHandler(an_MouseLeftButtonDown); |
106 an.MouseMove += new MouseEventHandler(an_MouseMove); |
106 an.MouseMove += new MouseEventHandler(an_MouseMove); |
107 an.MouseLeftButtonUp += new MouseButtonEventHandler(an_MouseLeftButtonUp); |
107 an.MouseLeftButtonUp += new MouseButtonEventHandler(an_MouseLeftButtonUp); |
108 //((ProductionTimeLineVM)DataContext).SelectedBookChapter); |
108 //((ProductionTimeLineVM)DataContext).SelectedBookChapter); |
109 AnnotationTimeStrip.Children.Add(an); |
109 AnnotationTimeStrip.Children.Add(an); |
|
110 |
110 |
111 |
111 } |
112 } |
112 |
113 |
113 } |
114 } |
114 |
115 |
146 if (e.GetPosition(((CustomableIndexElement)sender)).X >= ((CustomableIndexElement)sender).Width - 5) |
147 if (e.GetPosition(((CustomableIndexElement)sender)).X >= ((CustomableIndexElement)sender).Width - 5) |
147 { |
148 { |
148 _comePoint = e.GetPosition(((CustomableIndexElement)sender)); |
149 _comePoint = e.GetPosition(((CustomableIndexElement)sender)); |
149 _isTrimRightCapturated = true; |
150 _isTrimRightCapturated = true; |
150 } |
151 } |
|
152 foreach(ObservableCollection<SegmentIndex> Ocsi in ((ProductionTimeLineVM)DataContext).ListIndex) |
|
153 { |
|
154 foreach (SegmentIndex Si in Ocsi ) |
|
155 { |
|
156 |
|
157 if (((CustomableIndexElementVM)_selectedIndex.DataContext).SegmentIndex == Si) |
|
158 { |
|
159 if (Ocsi == ((ProductionTimeLineVM)DataContext).SelectedIndex) |
|
160 { |
|
161 Commands.ProductionTimeLine.IndexSelected.Execute(true,Si); |
|
162 } |
|
163 else |
|
164 { |
|
165 |
|
166 Commands.ProductionTimeLine.IndexSelected.Execute(false, Si); |
|
167 } |
|
168 |
|
169 } |
|
170 } |
|
171 } |
|
172 |
|
173 |
151 |
174 |
152 } |
175 } |
153 private void AddSequenceButton_Click(object sender, System.Windows.RoutedEventArgs e) |
176 private void AddSequenceButton_Click(object sender, System.Windows.RoutedEventArgs e) |
154 { |
177 { |
155 Random rndNumbers = new Random(); |
178 Random rndNumbers = new Random(); |