Beispiel #1
0
 internal void setTimeName(selectName.Info info)
 {
     if (selectNameForm != null)
         selectNameForm.Close();
     //this.Enabled = true;
     this.infoTime = info;
     this.timeNameLabel.Text = info.name;
 }
Beispiel #2
0
        public mainForm()
        {
            //
            // Required for Windows Form Designer support
            //

            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            paroleManager = new ParoleManager();

            //gestion des events
            paroleManager.onCurrentLineChangedEvent += new System.EventHandler(this.displayCurrentLine);
            paroleManager.onCurrentLineActiveChangedEvent += new System.EventHandler(this.displayCurrentLineActive);
            paroleManager.onFrameChangedEvent += new System.EventHandler(this.displayAllFrames);
            paroleManager.onFrameFileChangedEvent += new System.EventHandler(this.displayFrameFile);
            paroleManager.onLyricFileChangedEvent += new System.EventHandler(this.displayLyricFile);
            paroleManager.onToyundaFileChangedEvent += new System.EventHandler(this.displayToyundFile);
            paroleManager.onColorChangedEvent += new System.EventHandler(this.displayColor);
            paroleManager.init(//this.frameRichTextBox, //this.parolesText,
                //this.frameFileText,
                //this.paroleFileTextBox,
                //this.toyundaFileText,
                //wavPanel,
                //lineText,
                //sylText,
                //prevColorPanel,
              //duringColorPanel,
              //afterColorPanel
              );

            generateurManager = new GenerateurManager(this.console, this.consoleErreur);
            List<Generateur> generateurList = generateurManager.getGeneratorList();
            generateurComboBox.Items.Clear();
            videoFilepath = "";
            for (int i = 0; i < generateurList.Count; ++i)
            {

                generateurComboBox.Items.Add(generateurList[i].getDisplay());
                if (i == 0)
                {
                    generateurComboBox.SelectedIndex = 0;
                }
            }
            encodeur = new Encodeur();
            running = false;
            infoTime = new selectName.Info("", "", 0, "", "", "");
            frameChanged = false;
            this.selectNameForm = null;
        }