From 0e18467111dd49003d40519ff7dee294b2cdfa24 Mon Sep 17 00:00:00 2001 From: Daniel Harrod Date: Tue, 22 Nov 2022 20:28:25 -0600 Subject: [PATCH] Regenerate runtime schedule on any edit/add/load --- AppTestStudio/frmMain.Designer.cs | 205 ++++++++++++++++-------------- AppTestStudio/frmMain.cs | 5 +- AppTestStudio/frmMain.resx | 17 +-- 3 files changed, 118 insertions(+), 109 deletions(-) diff --git a/AppTestStudio/frmMain.Designer.cs b/AppTestStudio/frmMain.Designer.cs index b4a02cc..5fe162f 100644 --- a/AppTestStudio/frmMain.Designer.cs +++ b/AppTestStudio/frmMain.Designer.cs @@ -31,16 +31,16 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -546,16 +546,17 @@ private void InitializeComponent() this.splitContainerRuntimeSchedule = new System.Windows.Forms.SplitContainer(); this.lblRuntimeScheduleLabel = new System.Windows.Forms.Label(); this.dgRuntimeSchedule = new System.Windows.Forms.DataGridView(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colWindowName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colInstance = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colStartTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colRepeat = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colScheduleEnabled = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colEdit = new System.Windows.Forms.DataGridViewButtonColumn(); - this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerMain)).BeginInit(); this.splitContainerMain.Panel1.SuspendLayout(); @@ -2979,48 +2980,48 @@ private void InitializeComponent() // // dgvID // - dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; - this.dgvID.DefaultCellStyle = dataGridViewCellStyle11; + dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; + this.dgvID.DefaultCellStyle = dataGridViewCellStyle31; this.dgvID.HeaderText = "ID"; this.dgvID.MinimumWidth = 10; this.dgvID.Name = "dgvID"; // // dgvRed // - dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; - this.dgvRed.DefaultCellStyle = dataGridViewCellStyle12; + dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; + this.dgvRed.DefaultCellStyle = dataGridViewCellStyle32; this.dgvRed.HeaderText = "R"; this.dgvRed.MinimumWidth = 10; this.dgvRed.Name = "dgvRed"; // // dgvBlue // - dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; - this.dgvBlue.DefaultCellStyle = dataGridViewCellStyle13; + dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; + this.dgvBlue.DefaultCellStyle = dataGridViewCellStyle33; this.dgvBlue.HeaderText = "B"; this.dgvBlue.MinimumWidth = 10; this.dgvBlue.Name = "dgvBlue"; // // dgvGreen // - dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; - this.dgvGreen.DefaultCellStyle = dataGridViewCellStyle14; + dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; + this.dgvGreen.DefaultCellStyle = dataGridViewCellStyle34; this.dgvGreen.HeaderText = "G"; this.dgvGreen.MinimumWidth = 10; this.dgvGreen.Name = "dgvGreen"; // // dgvX // - dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; - this.dgvX.DefaultCellStyle = dataGridViewCellStyle15; + dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; + this.dgvX.DefaultCellStyle = dataGridViewCellStyle35; this.dgvX.HeaderText = "X"; this.dgvX.MinimumWidth = 10; this.dgvX.Name = "dgvX"; // // dgvY // - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; - this.dgvY.DefaultCellStyle = dataGridViewCellStyle16; + dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter; + this.dgvY.DefaultCellStyle = dataGridViewCellStyle36; this.dgvY.HeaderText = "Y"; this.dgvY.MinimumWidth = 10; this.dgvY.Name = "dgvY"; @@ -4342,14 +4343,14 @@ private void InitializeComponent() // this.dgvTest.Anchor = System.Windows.Forms.AnchorStyles.None; this.dgvTest.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvTest.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17; + dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle37.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle37.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle37.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle37.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle37.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle37.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvTest.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle37; this.dgvTest.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvTest.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dgvColorTestID, @@ -4360,14 +4361,14 @@ private void InitializeComponent() this.dgvYTest, this.dgvPassFail, this.dvgRange}); - dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvTest.DefaultCellStyle = dataGridViewCellStyle18; + dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle38.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle38.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle38.ForeColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvTest.DefaultCellStyle = dataGridViewCellStyle38; this.dgvTest.Location = new System.Drawing.Point(623, 226); this.dgvTest.Name = "dgvTest"; this.dgvTest.RowHeadersWidth = 62; @@ -4437,14 +4438,14 @@ private void InitializeComponent() // dgvTestAllReference // this.dgvTestAllReference.Anchor = System.Windows.Forms.AnchorStyles.None; - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvTestAllReference.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19; + dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle39.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvTestAllReference.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle39; this.dgvTestAllReference.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvTestAllReference.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dgvTestAllReferenceID, @@ -4453,14 +4454,14 @@ private void InitializeComponent() this.dgvTestAllReferenceBlue, this.dgvTestAllReferenceX, this.dgvTestAllReferenceY}); - dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvTestAllReference.DefaultCellStyle = dataGridViewCellStyle20; + dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle40.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvTestAllReference.DefaultCellStyle = dataGridViewCellStyle40; this.dgvTestAllReference.Location = new System.Drawing.Point(623, 48); this.dgvTestAllReference.Name = "dgvTestAllReference"; this.dgvTestAllReference.RowHeadersWidth = 62; @@ -4668,6 +4669,7 @@ private void InitializeComponent() this.colInstance, this.colStartTime, this.colRepeat, + this.colScheduleEnabled, this.colEdit}); this.dgSchedule.Dock = System.Windows.Forms.DockStyle.Fill; this.dgSchedule.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; @@ -6634,9 +6636,9 @@ private void InitializeComponent() this.lblRuntimeScheduleLabel.Dock = System.Windows.Forms.DockStyle.Top; this.lblRuntimeScheduleLabel.Location = new System.Drawing.Point(0, 0); this.lblRuntimeScheduleLabel.Name = "lblRuntimeScheduleLabel"; - this.lblRuntimeScheduleLabel.Size = new System.Drawing.Size(76, 13); + this.lblRuntimeScheduleLabel.Size = new System.Drawing.Size(119, 13); this.lblRuntimeScheduleLabel.TabIndex = 0; - this.lblRuntimeScheduleLabel.Text = "Schedule Plan"; + this.lblRuntimeScheduleLabel.Text = "Schedule plan for today"; // // dgRuntimeSchedule // @@ -6658,6 +6660,38 @@ private void InitializeComponent() this.dgRuntimeSchedule.Size = new System.Drawing.Size(614, 139); this.dgRuntimeSchedule.TabIndex = 4; // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.HeaderText = "Name"; + this.dataGridViewTextBoxColumn1.MinimumWidth = 8; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; + this.dataGridViewTextBoxColumn1.Width = 150; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.HeaderText = "Window"; + this.dataGridViewTextBoxColumn2.MinimumWidth = 8; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.dataGridViewTextBoxColumn2.Width = 150; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.HeaderText = "Instance"; + this.dataGridViewTextBoxColumn3.MinimumWidth = 60; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.ReadOnly = true; + this.dataGridViewTextBoxColumn3.Width = 60; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.HeaderText = "Start Time"; + this.dataGridViewTextBoxColumn4.MinimumWidth = 8; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Width = 150; + // // colName // this.colName.HeaderText = "Name"; @@ -6698,6 +6732,12 @@ private void InitializeComponent() this.colRepeat.ReadOnly = true; this.colRepeat.Width = 150; // + // colScheduleEnabled + // + this.colScheduleEnabled.HeaderText = "Enabled"; + this.colScheduleEnabled.Name = "colScheduleEnabled"; + this.colScheduleEnabled.ReadOnly = true; + // // colEdit // this.colEdit.HeaderText = "Modify"; @@ -6708,38 +6748,6 @@ private void InitializeComponent() this.colEdit.UseColumnTextForButtonValue = true; this.colEdit.Width = 35; // - // dataGridViewTextBoxColumn1 - // - this.dataGridViewTextBoxColumn1.HeaderText = "Name"; - this.dataGridViewTextBoxColumn1.MinimumWidth = 8; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.ReadOnly = true; - this.dataGridViewTextBoxColumn1.Width = 150; - // - // dataGridViewTextBoxColumn2 - // - this.dataGridViewTextBoxColumn2.HeaderText = "Window"; - this.dataGridViewTextBoxColumn2.MinimumWidth = 8; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.ReadOnly = true; - this.dataGridViewTextBoxColumn2.Width = 150; - // - // dataGridViewTextBoxColumn3 - // - this.dataGridViewTextBoxColumn3.HeaderText = "Instance"; - this.dataGridViewTextBoxColumn3.MinimumWidth = 60; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.ReadOnly = true; - this.dataGridViewTextBoxColumn3.Width = 60; - // - // dataGridViewTextBoxColumn4 - // - this.dataGridViewTextBoxColumn4.HeaderText = "Start Time"; - this.dataGridViewTextBoxColumn4.MinimumWidth = 8; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; - this.dataGridViewTextBoxColumn4.Width = 150; - // // frmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -7492,12 +7500,6 @@ private void InitializeComponent() private System.Windows.Forms.ComboBox cboThreads; private System.Windows.Forms.SplitContainer splitContainerRunTabThread; private System.Windows.Forms.SplitContainer splitContainerSchedule; - private System.Windows.Forms.DataGridViewTextBoxColumn colName; - private System.Windows.Forms.DataGridViewTextBoxColumn colWindowName; - private System.Windows.Forms.DataGridViewTextBoxColumn colInstance; - private System.Windows.Forms.DataGridViewTextBoxColumn colStartTime; - private System.Windows.Forms.DataGridViewTextBoxColumn colRepeat; - private System.Windows.Forms.DataGridViewButtonColumn colEdit; private System.Windows.Forms.SplitContainer splitContainerRuntimeSchedule; private System.Windows.Forms.Label lblRuntimeScheduleLabel; internal System.Windows.Forms.DataGridView dgRuntimeSchedule; @@ -7505,5 +7507,12 @@ private void InitializeComponent() private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; + private System.Windows.Forms.DataGridViewTextBoxColumn colName; + private System.Windows.Forms.DataGridViewTextBoxColumn colWindowName; + private System.Windows.Forms.DataGridViewTextBoxColumn colInstance; + private System.Windows.Forms.DataGridViewTextBoxColumn colStartTime; + private System.Windows.Forms.DataGridViewTextBoxColumn colRepeat; + private System.Windows.Forms.DataGridViewTextBoxColumn colScheduleEnabled; + private System.Windows.Forms.DataGridViewButtonColumn colEdit; } } \ No newline at end of file diff --git a/AppTestStudio/frmMain.cs b/AppTestStudio/frmMain.cs index 80606f6..3c6ee15 100644 --- a/AppTestStudio/frmMain.cs +++ b/AppTestStudio/frmMain.cs @@ -2753,6 +2753,7 @@ private void cmdAddSchedule_Click(object sender, EventArgs e) Schedule.ScheduleList.Add(si); SaveSchedule(); ReloadScheduleView(); + Schedule.RuntimeSchedule = Schedule.GenerateRuntimeSchedule(DateTime.Now); ReloadRuntimeScheduleView(); } } @@ -2800,6 +2801,7 @@ private void ReloadScheduleView() String Saturday = item.Saturday.ToX(); String Sunday = item.Sunday.ToX(); String Repeats = ""; + String IsEnabled = item.IsEnabled.ToString(); if (item.Repeats) { @@ -2814,7 +2816,7 @@ private void ReloadScheduleView() ItemName, WindowName, InstanceNumber, - StartsAt, Repeats}; + StartsAt, Repeats,IsEnabled}; dgSchedule.Rows.Add(k); item.CurrentRun = DateTime.MinValue; } @@ -4483,6 +4485,7 @@ private void dgSchedule_CellContentClick(object sender, DataGridViewCellEventArg SaveSchedule(); } ReloadScheduleView(); + Schedule.RuntimeSchedule = Schedule.GenerateRuntimeSchedule(DateTime.Now); ReloadRuntimeScheduleView(); } } diff --git a/AppTestStudio/frmMain.resx b/AppTestStudio/frmMain.resx index 42d1719..993cf64 100644 --- a/AppTestStudio/frmMain.resx +++ b/AppTestStudio/frmMain.resx @@ -135,6 +135,9 @@ True + + True + True @@ -547,22 +550,16 @@ 288, 95 - - True - - - True - - + True - + True - + True - + True