131 } |
131 } |
132 |
132 |
133 void OuvertureIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
133 void OuvertureIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
134 { |
134 { |
135 Commands.HeaderProduction.Chap04IndexingOkClick.Execute(); |
135 Commands.HeaderProduction.Chap04IndexingOkClick.Execute(); |
|
136 if (FinishedPart != null) |
|
137 { |
|
138 FinishedPart(sender,new HeaderProductionEventArgs()); |
|
139 } |
|
140 |
136 } |
141 } |
137 |
142 |
138 void PostModerniteIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
143 void PostModerniteIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
139 { |
144 { |
140 Commands.HeaderProduction.Chap03IndexingOkClick.Execute(); |
145 Commands.HeaderProduction.Chap03IndexingOkClick.Execute(); |
|
146 if (FinishedPart != null) |
|
147 { |
|
148 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
149 } |
141 } |
150 } |
142 |
151 |
143 void ModerniteIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
152 void ModerniteIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
144 { |
153 { |
145 Commands.HeaderProduction.Chap02IndexingOkClick.Execute(); |
154 Commands.HeaderProduction.Chap02IndexingOkClick.Execute(); |
|
155 if (FinishedPart != null) |
|
156 { |
|
157 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
158 } |
146 } |
159 } |
147 |
160 |
148 void OuvertureEditionController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
161 void OuvertureEditionController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
149 { |
162 { |
150 Commands.HeaderProduction.Chap04EditingOkClick.Execute(); |
163 Commands.HeaderProduction.Chap04EditingOkClick.Execute(); |
151 OuvertureIndexController.Active(); |
164 OuvertureIndexController.Active(); |
|
165 if (FinishedPart != null) |
|
166 { |
|
167 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
168 } |
152 } |
169 } |
153 |
170 |
154 void PostModerniteEditionController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
171 void PostModerniteEditionController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
155 { |
172 { |
156 Commands.HeaderProduction.Chap03EditingOkClick.Execute(); |
173 Commands.HeaderProduction.Chap03EditingOkClick.Execute(); |
157 PostModerniteIndexController.Active(); |
174 PostModerniteIndexController.Active(); |
158 OuvertureEditionController.Active(); |
175 OuvertureEditionController.Active(); |
|
176 if (FinishedPart != null) |
|
177 { |
|
178 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
179 } |
159 } |
180 } |
160 |
181 |
161 void ModerniteEditionControler_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
182 void ModerniteEditionControler_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
162 { |
183 { |
163 |
184 |
164 Commands.HeaderProduction.Chap02EditingOkClick.Execute(); |
185 Commands.HeaderProduction.Chap02EditingOkClick.Execute(); |
165 ModerniteIndexController.Active(); |
186 ModerniteIndexController.Active(); |
166 PostModerniteEditionController.Active(); |
187 PostModerniteEditionController.Active(); |
|
188 if (FinishedPart != null) |
|
189 { |
|
190 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
191 } |
167 } |
192 } |
168 |
193 |
169 void ModernisationIndexControl_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
194 void ModernisationIndexControl_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
170 { |
195 { |
171 Commands.HeaderProduction.Chap01IndexingOkClick.Execute(); |
196 Commands.HeaderProduction.Chap01IndexingOkClick.Execute(); |
|
197 if (FinishedPart != null) |
|
198 { |
|
199 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
200 } |
172 } |
201 } |
173 |
202 |
174 void HeaderProductionPartSelected(object sender, HeaderProductionPartControlerEventArgs e) |
203 void HeaderProductionPartSelected(object sender, HeaderProductionPartControlerEventArgs e) |
175 { |
204 { |
176 ModernisationEditionController.UnSelect(); |
205 ModernisationEditionController.UnSelect(); |
190 void ModernisationEditionControler_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
219 void ModernisationEditionControler_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e) |
191 { |
220 { |
192 Commands.HeaderProduction.Chap01EditingOkClick.Execute(); |
221 Commands.HeaderProduction.Chap01EditingOkClick.Execute(); |
193 ModernisationIndexController.Active(); |
222 ModernisationIndexController.Active(); |
194 ModerniteEditionController.Active(); |
223 ModerniteEditionController.Active(); |
|
224 if (FinishedPart != null) |
|
225 { |
|
226 FinishedPart(sender, new HeaderProductionEventArgs()); |
|
227 } |
195 |
228 |
196 } |
229 } |
197 public event EventHandler<HeaderProductionEventArgs> SelectedPart; |
230 public event EventHandler<HeaderProductionEventArgs> SelectedPart; |
198 |
231 public event EventHandler<HeaderProductionEventArgs> FinishedPart; |
199 |
232 |
200 } |
233 } |
201 public class HeaderProductionEventArgs : EventArgs |
234 public class HeaderProductionEventArgs : EventArgs |
202 { |
235 { |
203 public VideoChapterType ChapterType; |
236 public VideoChapterType ChapterType; |
204 public bool IsIndexPart; |
237 public bool IsIndexPart; |
|
238 public HeaderProductionEventArgs() |
|
239 { |
|
240 } |
205 public HeaderProductionEventArgs(VideoChapterType chapterType,bool isIndexpPrt) |
241 public HeaderProductionEventArgs(VideoChapterType chapterType,bool isIndexpPrt) |
206 { |
242 { |
207 ChapterType = chapterType; |
243 ChapterType = chapterType; |
208 IsIndexPart = isIndexpPrt; |
244 IsIndexPart = isIndexpPrt; |
209 } |
245 } |