mirror of
https://github.com/SlothDpal/Relaunch-Process.git
synced 2026-02-22 17:27:38 +03:00
Merge pull request #1 from SlothDpal/working
add: Autoinsert process name, .exe filter
This commit is contained in:
194
Form1.Designer.cs
generated
194
Form1.Designer.cs
generated
@@ -34,23 +34,23 @@ namespace Process_Auto_Relaunch
|
|||||||
this.groupBoxActions = new System.Windows.Forms.GroupBox();
|
this.groupBoxActions = new System.Windows.Forms.GroupBox();
|
||||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.checkBoxCheckProcess = new System.Windows.Forms.CheckBox();
|
||||||
this.radioButtonRestartTimer = new System.Windows.Forms.RadioButton();
|
this.radioButtonRestartTimer = new System.Windows.Forms.RadioButton();
|
||||||
|
this.radioButtonRestartNow = new System.Windows.Forms.RadioButton();
|
||||||
this.buttonSetProgramStart = new System.Windows.Forms.Button();
|
this.buttonSetProgramStart = new System.Windows.Forms.Button();
|
||||||
this.groupBoxProgramStart = new System.Windows.Forms.GroupBox();
|
this.groupBoxProgramStart = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBoxArguments = new System.Windows.Forms.TextBox();
|
||||||
this.labelArguments = new System.Windows.Forms.Label();
|
this.labelArguments = new System.Windows.Forms.Label();
|
||||||
|
this.labelProgramStartPath = new System.Windows.Forms.Label();
|
||||||
this.groupBoxProcessName = new System.Windows.Forms.GroupBox();
|
this.groupBoxProcessName = new System.Windows.Forms.GroupBox();
|
||||||
|
this.textBoxProcessName = new System.Windows.Forms.TextBox();
|
||||||
this.groupBoxEnabled = new System.Windows.Forms.GroupBox();
|
this.groupBoxEnabled = new System.Windows.Forms.GroupBox();
|
||||||
|
this.checkBoxSaveState = new System.Windows.Forms.CheckBox();
|
||||||
this.radioButtonEnableWathing = new System.Windows.Forms.RadioButton();
|
this.radioButtonEnableWathing = new System.Windows.Forms.RadioButton();
|
||||||
this.radioButtonDisableWathing = new System.Windows.Forms.RadioButton();
|
this.radioButtonDisableWathing = new System.Windows.Forms.RadioButton();
|
||||||
this.groupBoxStatus = new System.Windows.Forms.GroupBox();
|
this.groupBoxStatus = new System.Windows.Forms.GroupBox();
|
||||||
this.labelStatus = new System.Windows.Forms.Label();
|
this.labelStatus = new System.Windows.Forms.Label();
|
||||||
this.myBackgroundWorker = new System.ComponentModel.BackgroundWorker();
|
this.myBackgroundWorker = new System.ComponentModel.BackgroundWorker();
|
||||||
this.checkBoxSaveState = new System.Windows.Forms.CheckBox();
|
|
||||||
this.textBoxProcessName = new System.Windows.Forms.TextBox();
|
|
||||||
this.textBoxArguments = new System.Windows.Forms.TextBox();
|
|
||||||
this.labelProgramStartPath = new System.Windows.Forms.Label();
|
|
||||||
this.checkBoxCheckProcess = new System.Windows.Forms.CheckBox();
|
|
||||||
this.radioButtonRestartNow = new System.Windows.Forms.RadioButton();
|
|
||||||
this.groupBoxHistory = new System.Windows.Forms.GroupBox();
|
this.groupBoxHistory = new System.Windows.Forms.GroupBox();
|
||||||
this.richTextBoxHistory = new System.Windows.Forms.RichTextBox();
|
this.richTextBoxHistory = new System.Windows.Forms.RichTextBox();
|
||||||
this.groupBoxActions.SuspendLayout();
|
this.groupBoxActions.SuspendLayout();
|
||||||
@@ -72,9 +72,9 @@ namespace Process_Auto_Relaunch
|
|||||||
this.groupBoxActions.Controls.Add(this.radioButtonRestartTimer);
|
this.groupBoxActions.Controls.Add(this.radioButtonRestartTimer);
|
||||||
this.groupBoxActions.Controls.Add(this.radioButtonRestartNow);
|
this.groupBoxActions.Controls.Add(this.radioButtonRestartNow);
|
||||||
this.groupBoxActions.Location = new System.Drawing.Point(13, 79);
|
this.groupBoxActions.Location = new System.Drawing.Point(13, 79);
|
||||||
this.groupBoxActions.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxActions.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxActions.Name = "groupBoxActions";
|
this.groupBoxActions.Name = "groupBoxActions";
|
||||||
this.groupBoxActions.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxActions.Padding = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxActions.Size = new System.Drawing.Size(383, 111);
|
this.groupBoxActions.Size = new System.Drawing.Size(383, 111);
|
||||||
this.groupBoxActions.TabIndex = 0;
|
this.groupBoxActions.TabIndex = 0;
|
||||||
this.groupBoxActions.TabStop = false;
|
this.groupBoxActions.TabStop = false;
|
||||||
@@ -89,7 +89,7 @@ namespace Process_Auto_Relaunch
|
|||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.numericUpDown1.Location = new System.Drawing.Point(199, 23);
|
this.numericUpDown1.Location = new System.Drawing.Point(199, 23);
|
||||||
this.numericUpDown1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.numericUpDown1.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.numericUpDown1.Maximum = new decimal(new int[] {
|
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||||
1800,
|
1800,
|
||||||
0,
|
0,
|
||||||
@@ -116,12 +116,26 @@ namespace Process_Auto_Relaunch
|
|||||||
this.label1.TabIndex = 4;
|
this.label1.TabIndex = 4;
|
||||||
this.label1.Text = "секунд";
|
this.label1.Text = "секунд";
|
||||||
//
|
//
|
||||||
|
// checkBoxCheckProcess
|
||||||
|
//
|
||||||
|
this.checkBoxCheckProcess.AutoSize = true;
|
||||||
|
this.checkBoxCheckProcess.Checked = global::RelaunchProcess.Properties.Settings.Default.checkBeforeStart;
|
||||||
|
this.checkBoxCheckProcess.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.checkBoxCheckProcess.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::RelaunchProcess.Properties.Settings.Default, "checkBeforeStart", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
||||||
|
this.checkBoxCheckProcess.Location = new System.Drawing.Point(11, 78);
|
||||||
|
this.checkBoxCheckProcess.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.checkBoxCheckProcess.Name = "checkBoxCheckProcess";
|
||||||
|
this.checkBoxCheckProcess.Size = new System.Drawing.Size(265, 20);
|
||||||
|
this.checkBoxCheckProcess.TabIndex = 2;
|
||||||
|
this.checkBoxCheckProcess.Text = "Проверять наличие перед запуском";
|
||||||
|
this.checkBoxCheckProcess.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// radioButtonRestartTimer
|
// radioButtonRestartTimer
|
||||||
//
|
//
|
||||||
this.radioButtonRestartTimer.AutoSize = true;
|
this.radioButtonRestartTimer.AutoSize = true;
|
||||||
this.radioButtonRestartTimer.Checked = true;
|
this.radioButtonRestartTimer.Checked = true;
|
||||||
this.radioButtonRestartTimer.Location = new System.Drawing.Point(12, 23);
|
this.radioButtonRestartTimer.Location = new System.Drawing.Point(12, 23);
|
||||||
this.radioButtonRestartTimer.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.radioButtonRestartTimer.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.radioButtonRestartTimer.Name = "radioButtonRestartTimer";
|
this.radioButtonRestartTimer.Name = "radioButtonRestartTimer";
|
||||||
this.radioButtonRestartTimer.Size = new System.Drawing.Size(170, 20);
|
this.radioButtonRestartTimer.Size = new System.Drawing.Size(170, 20);
|
||||||
this.radioButtonRestartTimer.TabIndex = 1;
|
this.radioButtonRestartTimer.TabIndex = 1;
|
||||||
@@ -129,10 +143,23 @@ namespace Process_Auto_Relaunch
|
|||||||
this.radioButtonRestartTimer.Text = "Перезапустить через";
|
this.radioButtonRestartTimer.Text = "Перезапустить через";
|
||||||
this.radioButtonRestartTimer.UseVisualStyleBackColor = true;
|
this.radioButtonRestartTimer.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// radioButtonRestartNow
|
||||||
|
//
|
||||||
|
this.radioButtonRestartNow.AutoSize = true;
|
||||||
|
this.radioButtonRestartNow.Checked = global::RelaunchProcess.Properties.Settings.Default.restartNow;
|
||||||
|
this.radioButtonRestartNow.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::RelaunchProcess.Properties.Settings.Default, "restartNow", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
||||||
|
this.radioButtonRestartNow.Location = new System.Drawing.Point(11, 50);
|
||||||
|
this.radioButtonRestartNow.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.radioButtonRestartNow.Name = "radioButtonRestartNow";
|
||||||
|
this.radioButtonRestartNow.Size = new System.Drawing.Size(169, 20);
|
||||||
|
this.radioButtonRestartNow.TabIndex = 0;
|
||||||
|
this.radioButtonRestartNow.Text = "Перезапускать сразу";
|
||||||
|
this.radioButtonRestartNow.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// buttonSetProgramStart
|
// buttonSetProgramStart
|
||||||
//
|
//
|
||||||
this.buttonSetProgramStart.Location = new System.Drawing.Point(5, 23);
|
this.buttonSetProgramStart.Location = new System.Drawing.Point(5, 23);
|
||||||
this.buttonSetProgramStart.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.buttonSetProgramStart.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.buttonSetProgramStart.Name = "buttonSetProgramStart";
|
this.buttonSetProgramStart.Name = "buttonSetProgramStart";
|
||||||
this.buttonSetProgramStart.Size = new System.Drawing.Size(89, 34);
|
this.buttonSetProgramStart.Size = new System.Drawing.Size(89, 34);
|
||||||
this.buttonSetProgramStart.TabIndex = 1;
|
this.buttonSetProgramStart.TabIndex = 1;
|
||||||
@@ -149,14 +176,24 @@ namespace Process_Auto_Relaunch
|
|||||||
this.groupBoxProgramStart.Controls.Add(this.labelProgramStartPath);
|
this.groupBoxProgramStart.Controls.Add(this.labelProgramStartPath);
|
||||||
this.groupBoxProgramStart.Controls.Add(this.buttonSetProgramStart);
|
this.groupBoxProgramStart.Controls.Add(this.buttonSetProgramStart);
|
||||||
this.groupBoxProgramStart.Location = new System.Drawing.Point(13, 198);
|
this.groupBoxProgramStart.Location = new System.Drawing.Point(13, 198);
|
||||||
this.groupBoxProgramStart.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxProgramStart.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxProgramStart.Name = "groupBoxProgramStart";
|
this.groupBoxProgramStart.Name = "groupBoxProgramStart";
|
||||||
this.groupBoxProgramStart.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxProgramStart.Padding = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxProgramStart.Size = new System.Drawing.Size(383, 139);
|
this.groupBoxProgramStart.Size = new System.Drawing.Size(383, 139);
|
||||||
this.groupBoxProgramStart.TabIndex = 6;
|
this.groupBoxProgramStart.TabIndex = 6;
|
||||||
this.groupBoxProgramStart.TabStop = false;
|
this.groupBoxProgramStart.TabStop = false;
|
||||||
this.groupBoxProgramStart.Text = "Запуск программы";
|
this.groupBoxProgramStart.Text = "Запуск программы";
|
||||||
//
|
//
|
||||||
|
// textBoxArguments
|
||||||
|
//
|
||||||
|
this.textBoxArguments.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::RelaunchProcess.Properties.Settings.Default, "arguments", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
||||||
|
this.textBoxArguments.Location = new System.Drawing.Point(7, 108);
|
||||||
|
this.textBoxArguments.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.textBoxArguments.Name = "textBoxArguments";
|
||||||
|
this.textBoxArguments.Size = new System.Drawing.Size(365, 22);
|
||||||
|
this.textBoxArguments.TabIndex = 4;
|
||||||
|
this.textBoxArguments.Text = global::RelaunchProcess.Properties.Settings.Default.arguments;
|
||||||
|
//
|
||||||
// labelArguments
|
// labelArguments
|
||||||
//
|
//
|
||||||
this.labelArguments.AutoSize = true;
|
this.labelArguments.AutoSize = true;
|
||||||
@@ -167,20 +204,43 @@ namespace Process_Auto_Relaunch
|
|||||||
this.labelArguments.TabIndex = 3;
|
this.labelArguments.TabIndex = 3;
|
||||||
this.labelArguments.Text = "Дополнительные аргументы";
|
this.labelArguments.Text = "Дополнительные аргументы";
|
||||||
//
|
//
|
||||||
|
// labelProgramStartPath
|
||||||
|
//
|
||||||
|
this.labelProgramStartPath.AutoSize = true;
|
||||||
|
this.labelProgramStartPath.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::RelaunchProcess.Properties.Settings.Default, "startProgramPath", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
||||||
|
this.labelProgramStartPath.Location = new System.Drawing.Point(7, 62);
|
||||||
|
this.labelProgramStartPath.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
|
this.labelProgramStartPath.Name = "labelProgramStartPath";
|
||||||
|
this.labelProgramStartPath.Size = new System.Drawing.Size(0, 16);
|
||||||
|
this.labelProgramStartPath.TabIndex = 2;
|
||||||
|
this.labelProgramStartPath.Text = global::RelaunchProcess.Properties.Settings.Default.startProgramPath;
|
||||||
|
//
|
||||||
// groupBoxProcessName
|
// groupBoxProcessName
|
||||||
//
|
//
|
||||||
this.groupBoxProcessName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.groupBoxProcessName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.groupBoxProcessName.Controls.Add(this.textBoxProcessName);
|
this.groupBoxProcessName.Controls.Add(this.textBoxProcessName);
|
||||||
this.groupBoxProcessName.Location = new System.Drawing.Point(13, 12);
|
this.groupBoxProcessName.Location = new System.Drawing.Point(13, 12);
|
||||||
this.groupBoxProcessName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxProcessName.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxProcessName.Name = "groupBoxProcessName";
|
this.groupBoxProcessName.Name = "groupBoxProcessName";
|
||||||
this.groupBoxProcessName.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxProcessName.Padding = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxProcessName.Size = new System.Drawing.Size(383, 62);
|
this.groupBoxProcessName.Size = new System.Drawing.Size(383, 62);
|
||||||
this.groupBoxProcessName.TabIndex = 8;
|
this.groupBoxProcessName.TabIndex = 8;
|
||||||
this.groupBoxProcessName.TabStop = false;
|
this.groupBoxProcessName.TabStop = false;
|
||||||
this.groupBoxProcessName.Text = "Название наблюдаемого процесса (без расширения)";
|
this.groupBoxProcessName.Text = "Название наблюдаемого процесса (без расширения)";
|
||||||
//
|
//
|
||||||
|
// textBoxProcessName
|
||||||
|
//
|
||||||
|
this.textBoxProcessName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.textBoxProcessName.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::RelaunchProcess.Properties.Settings.Default, "processName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
||||||
|
this.textBoxProcessName.Location = new System.Drawing.Point(7, 25);
|
||||||
|
this.textBoxProcessName.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.textBoxProcessName.Name = "textBoxProcessName";
|
||||||
|
this.textBoxProcessName.Size = new System.Drawing.Size(368, 22);
|
||||||
|
this.textBoxProcessName.TabIndex = 3;
|
||||||
|
this.textBoxProcessName.Text = global::RelaunchProcess.Properties.Settings.Default.processName;
|
||||||
|
//
|
||||||
// groupBoxEnabled
|
// groupBoxEnabled
|
||||||
//
|
//
|
||||||
this.groupBoxEnabled.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.groupBoxEnabled.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
@@ -190,20 +250,35 @@ namespace Process_Auto_Relaunch
|
|||||||
this.groupBoxEnabled.Controls.Add(this.radioButtonDisableWathing);
|
this.groupBoxEnabled.Controls.Add(this.radioButtonDisableWathing);
|
||||||
this.groupBoxEnabled.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.groupBoxEnabled.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
this.groupBoxEnabled.Location = new System.Drawing.Point(13, 345);
|
this.groupBoxEnabled.Location = new System.Drawing.Point(13, 345);
|
||||||
this.groupBoxEnabled.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxEnabled.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxEnabled.Name = "groupBoxEnabled";
|
this.groupBoxEnabled.Name = "groupBoxEnabled";
|
||||||
this.groupBoxEnabled.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxEnabled.Padding = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxEnabled.Size = new System.Drawing.Size(383, 89);
|
this.groupBoxEnabled.Size = new System.Drawing.Size(383, 89);
|
||||||
this.groupBoxEnabled.TabIndex = 9;
|
this.groupBoxEnabled.TabIndex = 9;
|
||||||
this.groupBoxEnabled.TabStop = false;
|
this.groupBoxEnabled.TabStop = false;
|
||||||
this.groupBoxEnabled.Text = "Состояние";
|
this.groupBoxEnabled.Text = "Состояние";
|
||||||
//
|
//
|
||||||
|
// checkBoxSaveState
|
||||||
|
//
|
||||||
|
this.checkBoxSaveState.AutoSize = true;
|
||||||
|
this.checkBoxSaveState.Checked = global::RelaunchProcess.Properties.Settings.Default.saveOldState;
|
||||||
|
this.checkBoxSaveState.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.checkBoxSaveState.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::RelaunchProcess.Properties.Settings.Default, "saveOldState", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
||||||
|
this.checkBoxSaveState.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.checkBoxSaveState.Location = new System.Drawing.Point(20, 50);
|
||||||
|
this.checkBoxSaveState.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.checkBoxSaveState.Name = "checkBoxSaveState";
|
||||||
|
this.checkBoxSaveState.Size = new System.Drawing.Size(251, 20);
|
||||||
|
this.checkBoxSaveState.TabIndex = 2;
|
||||||
|
this.checkBoxSaveState.Text = "Запоминать последнее состояние";
|
||||||
|
this.checkBoxSaveState.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// radioButtonEnableWathing
|
// radioButtonEnableWathing
|
||||||
//
|
//
|
||||||
this.radioButtonEnableWathing.AutoSize = true;
|
this.radioButtonEnableWathing.AutoSize = true;
|
||||||
this.radioButtonEnableWathing.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.radioButtonEnableWathing.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
this.radioButtonEnableWathing.Location = new System.Drawing.Point(141, 23);
|
this.radioButtonEnableWathing.Location = new System.Drawing.Point(141, 23);
|
||||||
this.radioButtonEnableWathing.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.radioButtonEnableWathing.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.radioButtonEnableWathing.Name = "radioButtonEnableWathing";
|
this.radioButtonEnableWathing.Name = "radioButtonEnableWathing";
|
||||||
this.radioButtonEnableWathing.Size = new System.Drawing.Size(91, 20);
|
this.radioButtonEnableWathing.Size = new System.Drawing.Size(91, 20);
|
||||||
this.radioButtonEnableWathing.TabIndex = 1;
|
this.radioButtonEnableWathing.TabIndex = 1;
|
||||||
@@ -217,7 +292,7 @@ namespace Process_Auto_Relaunch
|
|||||||
this.radioButtonDisableWathing.Checked = true;
|
this.radioButtonDisableWathing.Checked = true;
|
||||||
this.radioButtonDisableWathing.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.radioButtonDisableWathing.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
this.radioButtonDisableWathing.Location = new System.Drawing.Point(11, 23);
|
this.radioButtonDisableWathing.Location = new System.Drawing.Point(11, 23);
|
||||||
this.radioButtonDisableWathing.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.radioButtonDisableWathing.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.radioButtonDisableWathing.Name = "radioButtonDisableWathing";
|
this.radioButtonDisableWathing.Name = "radioButtonDisableWathing";
|
||||||
this.radioButtonDisableWathing.Size = new System.Drawing.Size(100, 20);
|
this.radioButtonDisableWathing.Size = new System.Drawing.Size(100, 20);
|
||||||
this.radioButtonDisableWathing.TabIndex = 0;
|
this.radioButtonDisableWathing.TabIndex = 0;
|
||||||
@@ -232,9 +307,9 @@ namespace Process_Auto_Relaunch
|
|||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.groupBoxStatus.Controls.Add(this.labelStatus);
|
this.groupBoxStatus.Controls.Add(this.labelStatus);
|
||||||
this.groupBoxStatus.Location = new System.Drawing.Point(13, 442);
|
this.groupBoxStatus.Location = new System.Drawing.Point(13, 442);
|
||||||
this.groupBoxStatus.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxStatus.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxStatus.Name = "groupBoxStatus";
|
this.groupBoxStatus.Name = "groupBoxStatus";
|
||||||
this.groupBoxStatus.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.groupBoxStatus.Padding = new System.Windows.Forms.Padding(4);
|
||||||
this.groupBoxStatus.Size = new System.Drawing.Size(383, 64);
|
this.groupBoxStatus.Size = new System.Drawing.Size(383, 64);
|
||||||
this.groupBoxStatus.TabIndex = 10;
|
this.groupBoxStatus.TabIndex = 10;
|
||||||
this.groupBoxStatus.TabStop = false;
|
this.groupBoxStatus.TabStop = false;
|
||||||
@@ -255,81 +330,6 @@ namespace Process_Auto_Relaunch
|
|||||||
this.myBackgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.BackgroundWorkerDoWork);
|
this.myBackgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.BackgroundWorkerDoWork);
|
||||||
this.myBackgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
|
this.myBackgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
|
||||||
//
|
//
|
||||||
// checkBoxSaveState
|
|
||||||
//
|
|
||||||
this.checkBoxSaveState.AutoSize = true;
|
|
||||||
this.checkBoxSaveState.Checked = global::RelaunchProcess.Properties.Settings.Default.saveOldState;
|
|
||||||
this.checkBoxSaveState.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.checkBoxSaveState.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::RelaunchProcess.Properties.Settings.Default, "saveOldState", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
|
||||||
this.checkBoxSaveState.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.checkBoxSaveState.Location = new System.Drawing.Point(20, 50);
|
|
||||||
this.checkBoxSaveState.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
||||||
this.checkBoxSaveState.Name = "checkBoxSaveState";
|
|
||||||
this.checkBoxSaveState.Size = new System.Drawing.Size(251, 20);
|
|
||||||
this.checkBoxSaveState.TabIndex = 2;
|
|
||||||
this.checkBoxSaveState.Text = "Запоминать последнее состояние";
|
|
||||||
this.checkBoxSaveState.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// textBoxProcessName
|
|
||||||
//
|
|
||||||
this.textBoxProcessName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.textBoxProcessName.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::RelaunchProcess.Properties.Settings.Default, "processName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
|
||||||
this.textBoxProcessName.Location = new System.Drawing.Point(7, 25);
|
|
||||||
this.textBoxProcessName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
||||||
this.textBoxProcessName.Name = "textBoxProcessName";
|
|
||||||
this.textBoxProcessName.Size = new System.Drawing.Size(368, 22);
|
|
||||||
this.textBoxProcessName.TabIndex = 3;
|
|
||||||
this.textBoxProcessName.Text = global::RelaunchProcess.Properties.Settings.Default.processName;
|
|
||||||
//
|
|
||||||
// textBoxArguments
|
|
||||||
//
|
|
||||||
this.textBoxArguments.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::RelaunchProcess.Properties.Settings.Default, "arguments", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
|
||||||
this.textBoxArguments.Location = new System.Drawing.Point(7, 108);
|
|
||||||
this.textBoxArguments.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
||||||
this.textBoxArguments.Name = "textBoxArguments";
|
|
||||||
this.textBoxArguments.Size = new System.Drawing.Size(365, 22);
|
|
||||||
this.textBoxArguments.TabIndex = 4;
|
|
||||||
this.textBoxArguments.Text = global::RelaunchProcess.Properties.Settings.Default.arguments;
|
|
||||||
//
|
|
||||||
// labelProgramStartPath
|
|
||||||
//
|
|
||||||
this.labelProgramStartPath.AutoSize = true;
|
|
||||||
this.labelProgramStartPath.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::RelaunchProcess.Properties.Settings.Default, "startProgramPath", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
|
||||||
this.labelProgramStartPath.Location = new System.Drawing.Point(7, 62);
|
|
||||||
this.labelProgramStartPath.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
||||||
this.labelProgramStartPath.Name = "labelProgramStartPath";
|
|
||||||
this.labelProgramStartPath.Size = new System.Drawing.Size(0, 16);
|
|
||||||
this.labelProgramStartPath.TabIndex = 2;
|
|
||||||
this.labelProgramStartPath.Text = global::RelaunchProcess.Properties.Settings.Default.startProgramPath;
|
|
||||||
//
|
|
||||||
// checkBoxCheckProcess
|
|
||||||
//
|
|
||||||
this.checkBoxCheckProcess.AutoSize = true;
|
|
||||||
this.checkBoxCheckProcess.Checked = global::RelaunchProcess.Properties.Settings.Default.checkBeforeStart;
|
|
||||||
this.checkBoxCheckProcess.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.checkBoxCheckProcess.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::RelaunchProcess.Properties.Settings.Default, "checkBeforeStart", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
|
||||||
this.checkBoxCheckProcess.Location = new System.Drawing.Point(11, 78);
|
|
||||||
this.checkBoxCheckProcess.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
||||||
this.checkBoxCheckProcess.Name = "checkBoxCheckProcess";
|
|
||||||
this.checkBoxCheckProcess.Size = new System.Drawing.Size(265, 20);
|
|
||||||
this.checkBoxCheckProcess.TabIndex = 2;
|
|
||||||
this.checkBoxCheckProcess.Text = "Проверять наличие перед запуском";
|
|
||||||
this.checkBoxCheckProcess.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// radioButtonRestartNow
|
|
||||||
//
|
|
||||||
this.radioButtonRestartNow.AutoSize = true;
|
|
||||||
this.radioButtonRestartNow.Checked = global::RelaunchProcess.Properties.Settings.Default.restartNow;
|
|
||||||
this.radioButtonRestartNow.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::RelaunchProcess.Properties.Settings.Default, "restartNow", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
|
|
||||||
this.radioButtonRestartNow.Location = new System.Drawing.Point(11, 50);
|
|
||||||
this.radioButtonRestartNow.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
||||||
this.radioButtonRestartNow.Name = "radioButtonRestartNow";
|
|
||||||
this.radioButtonRestartNow.Size = new System.Drawing.Size(169, 20);
|
|
||||||
this.radioButtonRestartNow.TabIndex = 0;
|
|
||||||
this.radioButtonRestartNow.Text = "Перезапускать сразу";
|
|
||||||
this.radioButtonRestartNow.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// groupBoxHistory
|
// groupBoxHistory
|
||||||
//
|
//
|
||||||
this.groupBoxHistory.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.groupBoxHistory.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
@@ -367,7 +367,7 @@ namespace Process_Auto_Relaunch
|
|||||||
this.Controls.Add(this.groupBoxActions);
|
this.Controls.Add(this.groupBoxActions);
|
||||||
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
this.Margin = new System.Windows.Forms.Padding(4);
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.Name = "Form1";
|
this.Name = "Form1";
|
||||||
this.Text = "Relaunch Process";
|
this.Text = "Relaunch Process";
|
||||||
|
|||||||
5
Form1.cs
5
Form1.cs
@@ -156,6 +156,7 @@ namespace Process_Auto_Relaunch
|
|||||||
private void buttonSetProgramStart_Click(object sender, EventArgs e)
|
private void buttonSetProgramStart_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
OpenFileDialog openFile = new OpenFileDialog();
|
OpenFileDialog openFile = new OpenFileDialog();
|
||||||
|
openFile.Filter = "Èñïîëíÿåìûå ôàéëû (*.exe)|*.exe";
|
||||||
openFile.Title = "Óêàæèòå ïðîãðàììó çàïóñêà";
|
openFile.Title = "Óêàæèòå ïðîãðàììó çàïóñêà";
|
||||||
|
|
||||||
if (openFile.ShowDialog() == DialogResult.Cancel)
|
if (openFile.ShowDialog() == DialogResult.Cancel)
|
||||||
@@ -163,7 +164,9 @@ namespace Process_Auto_Relaunch
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//labelProgramStartPath.Text = openFile.FileName;
|
int lastSlash = openFile.FileName.LastIndexOf("\\");
|
||||||
|
textBoxProcessName.Text = openFile.FileName.Substring(lastSlash+1);
|
||||||
|
textBoxProcessName.Text = textBoxProcessName.Text.Remove(textBoxProcessName.Text.Length-4);
|
||||||
Settings.Default.startProgramPath = openFile.FileName;
|
Settings.Default.startProgramPath = openFile.FileName;
|
||||||
Settings.Default.Save();
|
Settings.Default.Save();
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,9 @@
|
|||||||
<metadata name="myBackgroundWorker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="myBackgroundWorker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>131</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|||||||
@@ -85,6 +85,7 @@
|
|||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<EmbeddedResource Include="Form1.resx">
|
<EmbeddedResource Include="Form1.resx">
|
||||||
<DependentUpon>Form1.cs</DependentUpon>
|
<DependentUpon>Form1.cs</DependentUpon>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
|||||||
Reference in New Issue
Block a user