Beispiel #1
0
        // TODO fix issue where if you remove a model, it can still attempt to start it (something to do with task.delay/start pipeline i imagine)

        public MainForm()
        {
            InitializeComponent();

            models = new ModelsGridWrapper(modelsGrid);
            models.SortByModelNameAscending();
            modelsGrid.CellFormatting       += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.modelsGrid_CellFormatting);
            modelsGrid.ScrollBars            = ScrollBars.None;
            modelsGrid.AllowUserToResizeRows = false;
            modelsGrid.MouseWheel           += new MouseEventHandler(mousewheel);

            this.Update();

            toolStripStatusLabel1.Text = "Setup output folder.";
            PrepareOutputFolder();
            toolStripStatusLabel1.Text = "Initialise manager.";
            InitializeManager();

            toolStripStatusLabel1.Text = "Check for streamlink.";
            CheckStreamlinkInstall();
            toolStripStatusLabel1.Text = "Load models list for autocomplete.";
            LoadModelNamesResourceFile();
            Log.Info("Starting up ...");

            this.Update();

            ClipboardNotification.ClipboardUpdate += ClipboardNotification_ClipboardUpdate;
        }
        // TODO fix issue where if you remove a model, it can still attempt to start it (something to do with task.delay/start pipeline i imagine)

        public MainForm()
        {
            InitializeComponent();
            models = new ModelsGridWrapper(modelsGrid);
            models.SortByModelNameAscending();

            PrepareOutputFolder();
            InitializeManager();
            LoadModelsFile();
            CheckStreamlinkInstall();
            LoadModelNamesResourceFile();
            Log.Info("Test");
        }