private void addProviderButton_Click(object sender, EventArgs e) { addDataForm = new AddDataForm(Program.mainMiddleClass.ProviderFields().ToArray<string>()); addDataForm.SetIntTypeField("id"); addDataForm.FormClosing += new FormClosingEventHandler(addProviderDataForm_FormClosing); this.Enabled = false; }
/// <summary> /// Открывает окно добавления новых заявок /// </summary> private void AddNewRequest() { addDataForm = new AddDataForm(Program.mainMiddleClass.RequestFields().ToArray<string>()); addDataForm.SetIntTypeField("id"); addDataForm.FormClosing += new FormClosingEventHandler(add_FormClosing); this.Enabled = false; }
private void AddNewClient() { List<string> l = Program.mainMiddleClass.ClientFields(); l.RemoveAt(1); addDataForm = new AddDataForm(l.ToArray<string>()); addDataForm.FormClosing += new FormClosingEventHandler(addClientForm_FormClosing); this.Enabled = false; }
/// <summary> /// Открывает окно добавления новых заявок /// </summary> private void AddNewRequest() { addDataForm = new AddDataForm(Program.mainMiddleClass.RequestAddingFields().ToArray<string>()); addDataForm.SetComboBoxToLastField(Program.mainMiddleClass.AllUsers()); addDataForm.FormClosing += new FormClosingEventHandler(add_FormClosing); this.Enabled = false; }