예제 #1
0
 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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 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;
 }
예제 #4
0
        /// <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;
        }