public AddSession(string title, formMain _parent) { InitializeComponent(); parent = _parent; textBox1.Text = title; if (title == "") this.Text = "Введите название нового сеанса"; else this.Text = "Измените название текущего сеанса"; }
public AddLevel(string title, formMain _parent) { InitializeComponent(); parent = _parent; textBox1.Text = title; if (title == "") AddLevel.ActiveForm.Text = "Введите название нового уровня"; else AddLevel.ActiveForm.Text = "Измените название текущего уровня"; }
public AddPatient(List<string> patientsName, string title, formMain _parent) { InitializeComponent(); if (title == "") this.Text = "Введите ФИО нового пациента"; else this.Text = "Введите новое ФИО пациента"; parent = _parent; names = new List<string>(patientsName); cName = title; textBox1.Text = title; }
public AddPattern(Pattern pattern, formMain _parent) { InitializeComponent(); parent = _parent; if (pattern == null) { AddPattern.ActiveForm.Text = "Введите новые данные"; comboBox1.SelectedIndex = 0; textBox1.Text = "0"; comboBox2.SelectedIndex = 0; comboBox3.SelectedIndex = 0; } else { AddPattern.ActiveForm.Text = "Измените данные"; comboBox1.SelectedIndex = pattern.Type; textBox1.Text = pattern.Length.ToString(); comboBox2.SelectedIndex = pattern.direction; comboBox3.SelectedIndex = pattern.color; } }
public AddTask(Task task, formMain _parent) { InitializeComponent(); parent = _parent; if (task == null) { AddTask.ActiveForm.Text = "Введите новые данные"; comboBox1.SelectedIndex = 0; textBox1.Text = "0"; radioButton1.Checked = true; checkBox1.Checked = false; textBox2.Text = "0"; checkBox2.Checked = false; checkBox2.Enabled = false; } else { AddTask.ActiveForm.Text = "Измените данные"; comboBox1.SelectedIndex = task.Type; textBox1.Text = task.Length.ToString(); checkBox2.Checked = task.hitObject; switch (task.BlinkType) { case 0: radioButton1.Checked = true; break; case 1: radioButton2.Checked = true; break; case 2: radioButton3.Checked = true; break; default: radioButton1.Checked = true; break; } textBox2.Text = task.BlinkPeriod.ToString(); checkBox1.Checked = task.Rotation; } }
public ResultComment(string com, formMain _parent) { parent = _parent; InitializeComponent(); comment.Text = com; }