Beispiel #1
0
        private async void buttonItem3_Click(object sender, EventArgs e)
        {
            AdderCouresFor AdderCouresFor1 = new AdderCouresFor();

            if (AdderCouresFor1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                await Sqldatabasethrding.SqlSaveVitl(AdderCouresFor1.NameOfCouress1.adder());

                NameOfCouress.NameOfCouresslist = NameOfCouress.GetAll();
                ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX3, NameOfCouress.NameOfCouresslist);
            }
        }
Beispiel #2
0
        private async void buttonX4_Click(object sender, EventArgs e)
        {
            AdderCouresFor AdderCouresFor1 = new AdderCouresFor();

            AdderCouresFor1.NameOfCouress1 = NameOfCouress;
            if (AdderCouresFor1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                NameOfCouress = AdderCouresFor1.NameOfCouress1;
                await Sqldatabasethrding.SqlSaveVitl(AdderCouresFor1.NameOfCouress1.updata());

                textBoxX1.Text            = NameOfCouress.Decrption;
                comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(NameOfCouress.Id_TypeofCouress_ta, TypeofCouress.TypeofCouressList);
            }
        }