From cf0f36903b87b63385842153c84049c538327cff Mon Sep 17 00:00:00 2001 From: andnb Date: Fri, 16 Jan 2026 16:22:20 +0000 Subject: [PATCH] Option to run Racadm locally; handle: logs, exceptions. Separate folders for scripts, logs --- SSH_Test/FormProfile.Designer.cs | 144 +++++----- SSH_Test/FormProfile.cs | 98 +++---- SSH_Test/FormProfile.resx | 238 ++++++++-------- SSH_Test/TastList.Designer.cs | 468 +++++++++++++++---------------- SSH_Test/TastList.resx | 322 ++++++++++----------- 5 files changed, 635 insertions(+), 635 deletions(-) diff --git a/SSH_Test/FormProfile.Designer.cs b/SSH_Test/FormProfile.Designer.cs index 716a6b0..5eaa899 100644 --- a/SSH_Test/FormProfile.Designer.cs +++ b/SSH_Test/FormProfile.Designer.cs @@ -1,73 +1,73 @@ -namespace SSH_Test -{ - partial class FormProfile - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.comboBoxProfile = new System.Windows.Forms.ComboBox(); - this.bOK = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // comboBoxProfile - // - this.comboBoxProfile.FormattingEnabled = true; - this.comboBoxProfile.Location = new System.Drawing.Point(12, 12); - this.comboBoxProfile.Name = "comboBoxProfile"; - this.comboBoxProfile.Size = new System.Drawing.Size(396, 21); - this.comboBoxProfile.TabIndex = 0; - this.comboBoxProfile.TextChanged += new System.EventHandler(this.comboBoxProfile_TextChanged); - // - // bOK - // - this.bOK.Location = new System.Drawing.Point(13, 56); - this.bOK.Name = "bOK"; - this.bOK.Size = new System.Drawing.Size(120, 23); - this.bOK.TabIndex = 1; - this.bOK.Text = "OK"; - this.bOK.UseCompatibleTextRendering = true; - this.bOK.UseVisualStyleBackColor = true; - this.bOK.Click += new System.EventHandler(this.bOK_Click); - // - // FormProfile - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(420, 98); - this.Controls.Add(this.bOK); - this.Controls.Add(this.comboBoxProfile); - this.Name = "FormProfile"; - this.Text = "Profile"; - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.ComboBox comboBoxProfile; - private System.Windows.Forms.Button bOK; - } +namespace SSH_Test +{ + partial class FormProfile + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.comboBoxProfile = new System.Windows.Forms.ComboBox(); + this.bOK = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // comboBoxProfile + // + this.comboBoxProfile.FormattingEnabled = true; + this.comboBoxProfile.Location = new System.Drawing.Point(12, 12); + this.comboBoxProfile.Name = "comboBoxProfile"; + this.comboBoxProfile.Size = new System.Drawing.Size(396, 21); + this.comboBoxProfile.TabIndex = 0; + this.comboBoxProfile.TextChanged += new System.EventHandler(this.comboBoxProfile_TextChanged); + // + // bOK + // + this.bOK.Location = new System.Drawing.Point(13, 56); + this.bOK.Name = "bOK"; + this.bOK.Size = new System.Drawing.Size(120, 23); + this.bOK.TabIndex = 1; + this.bOK.Text = "OK"; + this.bOK.UseCompatibleTextRendering = true; + this.bOK.UseVisualStyleBackColor = true; + this.bOK.Click += new System.EventHandler(this.bOK_Click); + // + // FormProfile + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(420, 98); + this.Controls.Add(this.bOK); + this.Controls.Add(this.comboBoxProfile); + this.Name = "FormProfile"; + this.Text = "Profile"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ComboBox comboBoxProfile; + private System.Windows.Forms.Button bOK; + } } \ No newline at end of file diff --git a/SSH_Test/FormProfile.cs b/SSH_Test/FormProfile.cs index cfe7d58..d2380e8 100644 --- a/SSH_Test/FormProfile.cs +++ b/SSH_Test/FormProfile.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using static System.Windows.Forms.VisualStyles.VisualStyleElement; - - -namespace SSH_Test -{ - public partial class FormProfile : Form - { - public string sProfile { get; set; } - public FormProfile(string sProfile) - { - InitializeComponent(); - this.sProfile = sProfile; - if (sProfile != null) sProfile = "Cisco_Switch"; - - int index = comboBoxProfile.FindStringExact(sProfile); - - // If the item is found, set it as the selected item - if (index != -1) - { - comboBoxProfile.SelectedIndex = index; - } - else - { - - comboBoxProfile.SelectedIndex = 0; - } - } - - private void bOK_Click(object sender, EventArgs e) - { - this.Close(); - } - - private void comboBoxProfile_TextChanged(object sender, EventArgs e) - { - Console.WriteLine("Profile changes to: {0}", comboBoxProfile.SelectedItem.ToString()); - sProfile = comboBoxProfile.SelectedItem.ToString(); - } - } -} +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using static System.Windows.Forms.VisualStyles.VisualStyleElement; + + +namespace SSH_Test +{ + public partial class FormProfile : Form + { + public string sProfile { get; set; } + public FormProfile(string sProfile) + { + InitializeComponent(); + this.sProfile = sProfile; + if (sProfile != null) sProfile = "Cisco_Switch"; + + int index = comboBoxProfile.FindStringExact(sProfile); + + // If the item is found, set it as the selected item + if (index != -1) + { + comboBoxProfile.SelectedIndex = index; + } + else + { + + comboBoxProfile.SelectedIndex = 0; + } + } + + private void bOK_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void comboBoxProfile_TextChanged(object sender, EventArgs e) + { + Console.WriteLine("Profile changes to: {0}", comboBoxProfile.SelectedItem.ToString()); + sProfile = comboBoxProfile.SelectedItem.ToString(); + } + } +} diff --git a/SSH_Test/FormProfile.resx b/SSH_Test/FormProfile.resx index 1af7de1..29dcb1b 100644 --- a/SSH_Test/FormProfile.resx +++ b/SSH_Test/FormProfile.resx @@ -1,120 +1,120 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/SSH_Test/TastList.Designer.cs b/SSH_Test/TastList.Designer.cs index 55c92b8..df2bc42 100644 --- a/SSH_Test/TastList.Designer.cs +++ b/SSH_Test/TastList.Designer.cs @@ -1,234 +1,234 @@ -namespace SSH_Test -{ - partial class TastList - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.bRunAll = new System.Windows.Forms.Button(); - this.dataGridViewTask = new System.Windows.Forms.DataGridView(); - this.buttonSave = new System.Windows.Forms.Button(); - this.buttonLoad = new System.Windows.Forms.Button(); - this.buttonConf = new System.Windows.Forms.Button(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.profileCommandsBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.profileBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.profileBindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.programBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.programBindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.TaskNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TaskDescription = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TaskDevice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TaskIp = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Port = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Run = new System.Windows.Forms.DataGridViewButtonColumn(); - this.Configuration = new System.Windows.Forms.DataGridViewButtonColumn(); - this.Profile = new System.Windows.Forms.DataGridViewComboBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.dataGridViewTask)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.profileCommandsBindingSource)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.profileBindingSource)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.profileBindingSource1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.programBindingSource)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.programBindingSource1)).BeginInit(); - this.SuspendLayout(); - // - // bRunAll - // - this.bRunAll.Location = new System.Drawing.Point(737, 9); - this.bRunAll.Name = "bRunAll"; - this.bRunAll.Size = new System.Drawing.Size(137, 50); - this.bRunAll.TabIndex = 1; - this.bRunAll.Text = "Run All"; - this.bRunAll.UseVisualStyleBackColor = true; - this.bRunAll.Click += new System.EventHandler(this.bRunAll_Click); - // - // dataGridViewTask - // - this.dataGridViewTask.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dataGridViewTask.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.TaskNum, - this.TaskDescription, - this.TaskDevice, - this.TaskIp, - this.Port, - this.Run, - this.Configuration, - this.Profile}); - this.dataGridViewTask.Location = new System.Drawing.Point(12, 65); - this.dataGridViewTask.Name = "dataGridViewTask"; - this.dataGridViewTask.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dataGridViewTask.Size = new System.Drawing.Size(1023, 373); - this.dataGridViewTask.TabIndex = 2; - this.dataGridViewTask.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewTask_CellContentClick); - this.dataGridViewTask.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewTask_CellEndEdit); - // - // buttonSave - // - this.buttonSave.Location = new System.Drawing.Point(114, 9); - this.buttonSave.Name = "buttonSave"; - this.buttonSave.Size = new System.Drawing.Size(96, 50); - this.buttonSave.TabIndex = 3; - this.buttonSave.Text = "Save Task List"; - this.buttonSave.UseVisualStyleBackColor = true; - this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); - // - // buttonLoad - // - this.buttonLoad.Location = new System.Drawing.Point(12, 9); - this.buttonLoad.Name = "buttonLoad"; - this.buttonLoad.Size = new System.Drawing.Size(96, 50); - this.buttonLoad.TabIndex = 4; - this.buttonLoad.Text = "Load Tasklist"; - this.buttonLoad.UseMnemonic = false; - this.buttonLoad.UseVisualStyleBackColor = true; - this.buttonLoad.Click += new System.EventHandler(this.buttonLoad_Click); - // - // buttonConf - // - this.buttonConf.Location = new System.Drawing.Point(216, 9); - this.buttonConf.Name = "buttonConf"; - this.buttonConf.Size = new System.Drawing.Size(96, 50); - this.buttonConf.TabIndex = 5; - this.buttonConf.Text = "General Configuration"; - this.buttonConf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.buttonConf.UseVisualStyleBackColor = true; - this.buttonConf.Click += new System.EventHandler(this.buttonConf_Click); - // - // pictureBox1 - // - this.pictureBox1.Location = new System.Drawing.Point(349, 4); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(206, 55); - this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pictureBox1.TabIndex = 6; - this.pictureBox1.TabStop = false; - // - // profileCommandsBindingSource - // - this.profileCommandsBindingSource.DataMember = "ProfileCommands"; - this.profileCommandsBindingSource.DataSource = this.profileBindingSource; - // - // TaskNum - // - this.TaskNum.HeaderText = "Task #"; - this.TaskNum.Name = "TaskNum"; - // - // TaskDescription - // - this.TaskDescription.HeaderText = "Description"; - this.TaskDescription.MinimumWidth = 50; - this.TaskDescription.Name = "TaskDescription"; - this.TaskDescription.Width = 200; - // - // TaskDevice - // - this.TaskDevice.HeaderText = "Device"; - this.TaskDevice.Name = "TaskDevice"; - // - // TaskIp - // - this.TaskIp.HeaderText = "IP"; - this.TaskIp.Name = "TaskIp"; - this.TaskIp.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.TaskIp.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.TaskIp.ToolTipText = "IP address"; - // - // Port - // - this.Port.HeaderText = "Port"; - this.Port.Name = "Port"; - this.Port.ToolTipText = "Port SSH=22"; - this.Port.Width = 50; - // - // Run - // - this.Run.HeaderText = "Run"; - this.Run.Name = "Run"; - this.Run.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.Run.Text = "Run"; - this.Run.Width = 50; - // - // Configuration - // - this.Configuration.HeaderText = "Configuration"; - this.Configuration.Name = "Configuration"; - this.Configuration.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.Configuration.Width = 80; - // - // Profile - // - this.Profile.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox; - this.Profile.HeaderText = "Profile"; - this.Profile.Name = "Profile"; - this.Profile.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.Profile.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.Profile.Width = 300; - // - // TastList - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1039, 450); - this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.buttonConf); - this.Controls.Add(this.buttonLoad); - this.Controls.Add(this.buttonSave); - this.Controls.Add(this.dataGridViewTask); - this.Controls.Add(this.bRunAll); - this.Name = "TastList"; - this.Text = "Task List"; - this.Load += new System.EventHandler(this.fSSHTest_Load); - ((System.ComponentModel.ISupportInitialize)(this.dataGridViewTask)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - private System.Windows.Forms.Button bRunAll; - private System.Windows.Forms.DataGridView dataGridViewTask; - private System.Windows.Forms.Button buttonSave; - private System.Windows.Forms.Button buttonLoad; - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.BindingSource profileBindingSource; - private System.Windows.Forms.BindingSource profileBindingSource1; - private System.Windows.Forms.BindingSource profileCommandsBindingSource; - private System.Windows.Forms.BindingSource programBindingSource; - private System.Windows.Forms.BindingSource programBindingSource1; - public System.Windows.Forms.Button buttonConf; - private System.Windows.Forms.DataGridViewTextBoxColumn TaskNum; - private System.Windows.Forms.DataGridViewTextBoxColumn TaskDescription; - private System.Windows.Forms.DataGridViewTextBoxColumn TaskDevice; - private System.Windows.Forms.DataGridViewTextBoxColumn TaskIp; - private System.Windows.Forms.DataGridViewTextBoxColumn Port; - private System.Windows.Forms.DataGridViewButtonColumn Run; - private System.Windows.Forms.DataGridViewButtonColumn Configuration; - private System.Windows.Forms.DataGridViewComboBoxColumn Profile; - } -} - +namespace SSH_Test +{ + partial class TastList + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.bRunAll = new System.Windows.Forms.Button(); + this.dataGridViewTask = new System.Windows.Forms.DataGridView(); + this.buttonSave = new System.Windows.Forms.Button(); + this.buttonLoad = new System.Windows.Forms.Button(); + this.buttonConf = new System.Windows.Forms.Button(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.profileCommandsBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.profileBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.profileBindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.programBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.programBindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.TaskNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TaskDescription = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TaskDevice = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TaskIp = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Port = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Run = new System.Windows.Forms.DataGridViewButtonColumn(); + this.Configuration = new System.Windows.Forms.DataGridViewButtonColumn(); + this.Profile = new System.Windows.Forms.DataGridViewComboBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewTask)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.profileCommandsBindingSource)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.profileBindingSource)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.profileBindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.programBindingSource)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.programBindingSource1)).BeginInit(); + this.SuspendLayout(); + // + // bRunAll + // + this.bRunAll.Location = new System.Drawing.Point(737, 9); + this.bRunAll.Name = "bRunAll"; + this.bRunAll.Size = new System.Drawing.Size(137, 50); + this.bRunAll.TabIndex = 1; + this.bRunAll.Text = "Run All"; + this.bRunAll.UseVisualStyleBackColor = true; + this.bRunAll.Click += new System.EventHandler(this.bRunAll_Click); + // + // dataGridViewTask + // + this.dataGridViewTask.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewTask.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.TaskNum, + this.TaskDescription, + this.TaskDevice, + this.TaskIp, + this.Port, + this.Run, + this.Configuration, + this.Profile}); + this.dataGridViewTask.Location = new System.Drawing.Point(12, 65); + this.dataGridViewTask.Name = "dataGridViewTask"; + this.dataGridViewTask.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; + this.dataGridViewTask.Size = new System.Drawing.Size(1023, 373); + this.dataGridViewTask.TabIndex = 2; + this.dataGridViewTask.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewTask_CellContentClick); + this.dataGridViewTask.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridViewTask_CellEndEdit); + // + // buttonSave + // + this.buttonSave.Location = new System.Drawing.Point(114, 9); + this.buttonSave.Name = "buttonSave"; + this.buttonSave.Size = new System.Drawing.Size(96, 50); + this.buttonSave.TabIndex = 3; + this.buttonSave.Text = "Save Task List"; + this.buttonSave.UseVisualStyleBackColor = true; + this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); + // + // buttonLoad + // + this.buttonLoad.Location = new System.Drawing.Point(12, 9); + this.buttonLoad.Name = "buttonLoad"; + this.buttonLoad.Size = new System.Drawing.Size(96, 50); + this.buttonLoad.TabIndex = 4; + this.buttonLoad.Text = "Load Tasklist"; + this.buttonLoad.UseMnemonic = false; + this.buttonLoad.UseVisualStyleBackColor = true; + this.buttonLoad.Click += new System.EventHandler(this.buttonLoad_Click); + // + // buttonConf + // + this.buttonConf.Location = new System.Drawing.Point(216, 9); + this.buttonConf.Name = "buttonConf"; + this.buttonConf.Size = new System.Drawing.Size(96, 50); + this.buttonConf.TabIndex = 5; + this.buttonConf.Text = "General Configuration"; + this.buttonConf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonConf.UseVisualStyleBackColor = true; + this.buttonConf.Click += new System.EventHandler(this.buttonConf_Click); + // + // pictureBox1 + // + this.pictureBox1.Location = new System.Drawing.Point(349, 4); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(206, 55); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 6; + this.pictureBox1.TabStop = false; + // + // profileCommandsBindingSource + // + this.profileCommandsBindingSource.DataMember = "ProfileCommands"; + this.profileCommandsBindingSource.DataSource = this.profileBindingSource; + // + // TaskNum + // + this.TaskNum.HeaderText = "Task #"; + this.TaskNum.Name = "TaskNum"; + // + // TaskDescription + // + this.TaskDescription.HeaderText = "Description"; + this.TaskDescription.MinimumWidth = 50; + this.TaskDescription.Name = "TaskDescription"; + this.TaskDescription.Width = 200; + // + // TaskDevice + // + this.TaskDevice.HeaderText = "Device"; + this.TaskDevice.Name = "TaskDevice"; + // + // TaskIp + // + this.TaskIp.HeaderText = "IP"; + this.TaskIp.Name = "TaskIp"; + this.TaskIp.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.TaskIp.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.TaskIp.ToolTipText = "IP address"; + // + // Port + // + this.Port.HeaderText = "Port"; + this.Port.Name = "Port"; + this.Port.ToolTipText = "Port SSH=22"; + this.Port.Width = 50; + // + // Run + // + this.Run.HeaderText = "Run"; + this.Run.Name = "Run"; + this.Run.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.Run.Text = "Run"; + this.Run.Width = 50; + // + // Configuration + // + this.Configuration.HeaderText = "Configuration"; + this.Configuration.Name = "Configuration"; + this.Configuration.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.Configuration.Width = 80; + // + // Profile + // + this.Profile.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox; + this.Profile.HeaderText = "Profile"; + this.Profile.Name = "Profile"; + this.Profile.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.Profile.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.Profile.Width = 300; + // + // TastList + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1039, 450); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.buttonConf); + this.Controls.Add(this.buttonLoad); + this.Controls.Add(this.buttonSave); + this.Controls.Add(this.dataGridViewTask); + this.Controls.Add(this.bRunAll); + this.Name = "TastList"; + this.Text = "Task List"; + this.Load += new System.EventHandler(this.fSSHTest_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewTask)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.Button bRunAll; + private System.Windows.Forms.DataGridView dataGridViewTask; + private System.Windows.Forms.Button buttonSave; + private System.Windows.Forms.Button buttonLoad; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.BindingSource profileBindingSource; + private System.Windows.Forms.BindingSource profileBindingSource1; + private System.Windows.Forms.BindingSource profileCommandsBindingSource; + private System.Windows.Forms.BindingSource programBindingSource; + private System.Windows.Forms.BindingSource programBindingSource1; + public System.Windows.Forms.Button buttonConf; + private System.Windows.Forms.DataGridViewTextBoxColumn TaskNum; + private System.Windows.Forms.DataGridViewTextBoxColumn TaskDescription; + private System.Windows.Forms.DataGridViewTextBoxColumn TaskDevice; + private System.Windows.Forms.DataGridViewTextBoxColumn TaskIp; + private System.Windows.Forms.DataGridViewTextBoxColumn Port; + private System.Windows.Forms.DataGridViewButtonColumn Run; + private System.Windows.Forms.DataGridViewButtonColumn Configuration; + private System.Windows.Forms.DataGridViewComboBoxColumn Profile; + } +} + diff --git a/SSH_Test/TastList.resx b/SSH_Test/TastList.resx index eac58a6..39a80d0 100644 --- a/SSH_Test/TastList.resx +++ b/SSH_Test/TastList.resx @@ -1,162 +1,162 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - 182, 17 - - - 17, 17 - - - 17, 17 - - - 409, 17 - - - 580, 17 - - - 757, 17 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + 182, 17 + + + 17, 17 + + + 17, 17 + + + 409, 17 + + + 580, 17 + + + 757, 17 + \ No newline at end of file