private void btnAddNewAutoRepair_Click(object sender, EventArgs e)
 {
     Form1.WindowIndex    = WindowsStruct.AddAutoInRep;
     logicForAddRepair    = true;
     formAddAutoInRepairs = new FormAddAuto(this, mainForm);
     formAddAutoInRepairs.ShowDialog();
 }
Exemple #2
0
        private void btnAddCar_Click(object sender, EventArgs e)
        {
            FormAddAuto formAddAuto = new FormAddAuto(this);

            formAddAuto.ShowDialog();
        }
 public FormAddRepair(FormAddAuto addAuto, Form1 mainForm) : this()
 {
     formAddAutoInRepairs = addAuto;
     this.mainForm        = mainForm;
     formForSelect        = new FormForSelect(this, mainForm);
 }
 public FormForSelect(FormAddAuto FormAddAuto, Form1 mainForm) : this()
 {
     this.mainForm    = mainForm;
     this.formAddAuto = FormAddAuto;
 }