private void CoresEditAdder_Load(object sender, EventArgs e) { if (ToAddInCores == false) { comboBoxEx1.Visible = false; labelX1.Visible = false; comboBoxEx2.Visible = true; labelX2.Visible = true; EditTame.AdderComvbox(comboBoxEx2, NameOfCouress.NameOfCouresslist); } else { comboBoxEx1.Visible = true; labelX1.Visible = true; comboBoxEx2.Visible = false; labelX2.Visible = false; comboBoxEx1.AutoCompleteCustomSource = RibbonForm1.Combox; comboBoxEx1.AutoCompleteSource = AutoCompleteSource.CustomSource; intList = RibbonForm1.intList; } if (CouressEdit != null && ToAddInCores == false) { idVite = CouressEdit.Id_Information; comboBoxEx2.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(CouressEdit.id_NameOfCouress, NameOfCouress.NameOfCouresslist); NumberOfdayregest.Text = CouressEdit.NumberOfdayregest.ToString(); Result.Text = CouressEdit.Result.ToString(); buttonX1.Text = "تعديل"; } }
private void WereDeliveryEditAdder_Load(object sender, EventArgs e) { EditTame.AdderComvbox(comboBoxEx1, WereType.WereTypeList); if (WereDeliveryEdit != null) { comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(WereDeliveryEdit.Id_WereType, WereType.WereTypeList); dateTimeInput1.Value = WereDeliveryEdit.dateDeliveryitem.Value; dateTimeInput2.Value = WereDeliveryEdit.DateBackitem.Value; textBoxX1.Text = WereDeliveryEdit.Notes; this.Text = "تعديل أستلام مادة"; buttonX1.Text = "تعديل"; } else { this.Text = "إضافة أستلام مادة"; buttonX1.Text = "تعديل"; } }
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); } }
private void Corser_Load(object sender, EventArgs e) { ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["Id_Jop_Ta"], Jop.JopStatic); ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX1.Columns["Setewation"], Team.Setwation); EditTame.AdderComvbox(comboBoxEx1, NameTeamType.NameTeamTypeStatic); if (NameTeam != null) { /////// Type = NameTeam.NameTeamType_Id; textBoxX1.Text = NameTeam.nameOftame; comboBoxEx1.SelectedIndex = ClassDataGridViewDo.RetunIndexByIdSech(NameTeam.NameTeamType_Id, NameTeamType.NameTeamTypeStatic); comboBoxEx1.Enabled = false; //////////////// TeamList = Team.GetByGetbyIdNameName(NameTeam.id, checkBoxX1.Checked); foreach (Team TeamVX in TeamList) { VitlByIdList.Add(new IdAndName(TeamVX.ID_informtion)); } ClassDataGridViewDo.DataGridEnterGridToWorkTeam(dataGridViewX1, TeamList, VitlByIdList); } }