private void buttonX1_Click(object sender, EventArgs e) { Sqldatabasethrding.SqlAddOrUpdateOrDelet(ClassConvert.ConvertListInterfaseToDataBase(CouressList), IntAdderCoress, IntEditCoress, IntDeletCoress); CouressList = Couress.GetByNameOfCores(NameOfCouress.id); VitlByIdList.Clear(); foreach (Couress Couressv in CouressList) { VitlByIdList.Add(Vitl.VitlIdAndName(Couressv.Id_Information)); } ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX1, CouressList, VitlByIdList); }
private void Corser_Load(object sender, EventArgs e) { EditTame.AdderComvbox(comboBoxEx1, TypeofCouress.TypeofCouressList); if (NameOfCouress == null) { } else { Type = NameOfCouress.Id_TypeofCouress_ta; textBoxX1.Text = NameOfCouress.Decrption; comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(NameOfCouress.Id_TypeofCouress_ta, TypeofCouress.TypeofCouressList); comboBoxEx1.Enabled = false; CouressList = Couress.GetByNameOfCores(NameOfCouress.id); foreach (Couress Couressv in CouressList) { VitlByIdList.Add(Vitl.VitlIdAndName(Couressv.Id_Information)); } ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX1, CouressList, VitlByIdList); } }