client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs
changeset 27 f292db96b050
parent 24 c031f1132dde
child 36 b6df6fce6e5d
equal deleted inserted replaced
26:44a2dc869e28 27:f292db96b050
    18 		public HeaderProduction()
    18 		public HeaderProduction()
    19 		{
    19 		{
    20 			// Required to initialize variables
    20 			// Required to initialize variables
    21             
    21             
    22 			InitializeComponent();
    22 			InitializeComponent();
    23             ModernisationEditionController.Active();
    23            /* ModernisationEditionController.Active();
    24             
    24             
    25             ModernisationEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
    25             ModernisationEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
    26             ModernisationIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
    26             ModernisationIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
    27           
    27           
    28 
    28 
    33             PostModerniteEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
    33             PostModerniteEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
    34             PostModerniteIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
    34             PostModerniteIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
    35             
    35             
    36 
    36 
    37             OuvertureEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
    37             OuvertureEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
    38             OuvertureIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
    38             OuvertureIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;*/
    39 
    39 
    40             /////////////////////////--
    40             /////////////////////////--
    41             ModernisationEditionController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    41             /*ModernisationEditionController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    42             ModernisationIndexController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    42             ModernisationIndexController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    43            
    43            
    44             ModerniteEditionController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    44             ModerniteEditionController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    45             ModerniteIndexController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    45             ModerniteIndexController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
    46 
    46 
    71             PostModerniteEditionController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(PostModerniteEditionController_HeaderProductionPartFinished);
    71             PostModerniteEditionController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(PostModerniteEditionController_HeaderProductionPartFinished);
    72             PostModerniteIndexController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(PostModerniteIndexController_HeaderProductionPartFinished);
    72             PostModerniteIndexController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(PostModerniteIndexController_HeaderProductionPartFinished);
    73 
    73 
    74             OuvertureEditionController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(OuvertureEditionController_HeaderProductionPartFinished);
    74             OuvertureEditionController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(OuvertureEditionController_HeaderProductionPartFinished);
    75             OuvertureIndexController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(OuvertureIndexController_HeaderProductionPartFinished);
    75             OuvertureIndexController.HeaderProductionPartFinished += new EventHandler<HeaderProductionPartControlerEventArgs>(OuvertureIndexController_HeaderProductionPartFinished);
    76            
    76            */
    77         }
    77         }
    78 
    78 
    79         void OuvertureIndexController_HeaderProductionPartSelected(object sender, HeaderProductionPartControlerEventArgs e)
    79        /* void OuvertureIndexController_HeaderProductionPartSelected(object sender, HeaderProductionPartControlerEventArgs e)
    80         {
    80         {
    81             if (SelectedPart != null)
    81             if (SelectedPart != null)
    82             {
    82             {
    83                 InstructionText.Text = Iri.Modernisation.Lang.LangResource.IndexationMessage.Replace("{0}", "Ouverture");
    83                 InstructionText.Text = Iri.Modernisation.Lang.LangResource.IndexationMessage.Replace("{0}", "Ouverture");
    84                 SelectedPart(sender, new HeaderProductionEventArgs(VideoChapterType.Ouverture, true));
    84                 SelectedPart(sender, new HeaderProductionEventArgs(VideoChapterType.Ouverture, true));
   256             }
   256             }
   257            
   257            
   258         }
   258         }
   259         public event EventHandler<HeaderProductionEventArgs> SelectedPart;
   259         public event EventHandler<HeaderProductionEventArgs> SelectedPart;
   260         public event EventHandler<HeaderProductionEventArgs> FinishedPart;
   260         public event EventHandler<HeaderProductionEventArgs> FinishedPart;
   261 
   261 */
   262 	}
   262 	}
   263     public class HeaderProductionEventArgs : EventArgs
   263     public class HeaderProductionEventArgs : EventArgs
   264     {
   264     {
   265         public VideoChapterType ChapterType;
   265         public VideoChapterType ChapterType;
   266         public bool IsIndexPart;
   266         public bool IsIndexPart;