Beispiel #1
0
        /// <summary>
        /// Constructeur
        /// </summary>
        public Tapes()
        {
            Disque    = @"H:";
            nouvelles = new List <Videos>();
            nsh       = new List <Shots>();
            if (!Directory.Exists(Disque))
            {
                FolderBrowserDialog fdb = new FolderBrowserDialog();
                fdb.Description = "Sélectionnez le disque";
                if (fdb.ShowDialog() == DialogResult.OK)
                {
                    BasePath = BasePath.Replace(Disque, fdb.SelectedPath);
                    Disque   = fdb.SelectedPath;
                }
                else
                {
                    return;
                }
            }
            md = new Modèle();
            InitializeComponent();
            cutDelay         = 2;
            time.Interval    = 1000;
            time.Tick       += Time_Tick;
            frameTimer.Tick += FrameTimer_Tick;
            int frtotal = md.Shots.Sum(s => s.FrameCount).Value;

            global.Text = Videos.DuréeShot(frtotal);
            sceneIndexControl.Init(md);
            dataSelector.Init(md);
            shotsToPlay = new List <Shots>();
        }
Beispiel #2
0
 public void Init(Modèle m)
 {
     md = m;
     UpdateCountries();
     UpdateKeywords();
     UpdatePersonnes();
 }
Beispiel #3
0
 public void Init(Modèle m)
 {
     md = m;
     GetData();
     Valid.Enabled             = false;
     AddKey.Enabled            = false;
     AddPerson.Enabled         = false;
     cBKeyword.SelectedIndex   = -1;
     cBPersonnes.SelectedIndex = -1;
     Famille.SelectedIndex     = -1;
 }