client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs
--- a/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs Thu Dec 03 16:05:57 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs Mon Dec 07 10:36:55 2009 +0100
@@ -133,22 +133,39 @@
void OuvertureIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
{
Commands.HeaderProduction.Chap04IndexingOkClick.Execute();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender,new HeaderProductionEventArgs());
+ }
+
}
void PostModerniteIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
{
Commands.HeaderProduction.Chap03IndexingOkClick.Execute();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
void ModerniteIndexController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
{
Commands.HeaderProduction.Chap02IndexingOkClick.Execute();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
void OuvertureEditionController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
{
Commands.HeaderProduction.Chap04EditingOkClick.Execute();
OuvertureIndexController.Active();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
void PostModerniteEditionController_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
@@ -156,6 +173,10 @@
Commands.HeaderProduction.Chap03EditingOkClick.Execute();
PostModerniteIndexController.Active();
OuvertureEditionController.Active();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
void ModerniteEditionControler_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
@@ -164,11 +185,19 @@
Commands.HeaderProduction.Chap02EditingOkClick.Execute();
ModerniteIndexController.Active();
PostModerniteEditionController.Active();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
void ModernisationIndexControl_HeaderProductionPartFinished(object sender, HeaderProductionPartControlerEventArgs e)
{
Commands.HeaderProduction.Chap01IndexingOkClick.Execute();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
void HeaderProductionPartSelected(object sender, HeaderProductionPartControlerEventArgs e)
@@ -192,16 +221,23 @@
Commands.HeaderProduction.Chap01EditingOkClick.Execute();
ModernisationIndexController.Active();
ModerniteEditionController.Active();
+ if (FinishedPart != null)
+ {
+ FinishedPart(sender, new HeaderProductionEventArgs());
+ }
}
public event EventHandler<HeaderProductionEventArgs> SelectedPart;
-
+ public event EventHandler<HeaderProductionEventArgs> FinishedPart;
}
public class HeaderProductionEventArgs : EventArgs
{
public VideoChapterType ChapterType;
public bool IsIndexPart;
+ public HeaderProductionEventArgs()
+ {
+ }
public HeaderProductionEventArgs(VideoChapterType chapterType,bool isIndexpPrt)
{
ChapterType = chapterType;