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 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); } }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { CoresEditAdder Detalis1 = new CoresEditAdder(); Detalis1.idVite = NameOfCouress.id; this.Opacity = 0.5; Detalis1.CouressEdit = CouressList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), CouressList)]; if (Detalis1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { CouressList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), CouressList)] = Detalis1.CouressEdit; if (ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value) > 0) { IntEditCoress.Add(ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value), CouressList)); } } ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX1, CouressList, VitlByIdList); this.Opacity = 1; } }
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 buttonX2_Click(object sender, EventArgs e) { CoresEditAdder CoresEditAdder = new CoresEditAdder(); CoresEditAdder.ToAddInCores = true; if (Type != 0) { CoresEditAdder.idVite = NameOfCouress.id; if (CoresEditAdder.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { CouressList.Add(CoresEditAdder.CouressEdit); IntAdderCoress.Add(CouressList.Count - 1); VitlByIdList.Clear(); foreach (Couress Couressv in CouressList) { VitlByIdList.Add(Vitl.VitlIdAndName(Couressv.Id_Information)); } ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX1, CoresEditAdder.CouressEdit, VitlByIdList[CouressList.IndexOf(CoresEditAdder.CouressEdit)]); } } }
private async void RibbonForm1_Load(object sender, EventArgs e) { #region setup1 Vitl.SetUpNameDataBase(); #endregion // Sqldatabasethrding.SqlConnection1.ConnectionString = Sqldatabasethrding.sqlconction; // Sqldatabasethrding.SqlConnection1.Open(); #region SetUpCLassis CvTeamNeed.CvTeamNeedList = await CvTeamNeed.GetAll(); CV_Study.CV_StudyList = await CV_Study.GetAll(); NameTeamType.NameTeamTypeStatic = NameTeamType.GetAll(); NameTeam.NameTeamStatic = await NameTeam.GetAll(); Jop.JopStatic = Jop.GetAll(); TypeofCouress.TypeofCouressList = TypeofCouress.GetAll(); NameOfCouress.NameOfCouresslist = NameOfCouress.GetAll(); WereType.WereTypeList = WereType.GetAll(); Valuationname.Valuationnamelist = Valuationname.GetAll(); Scileis.ScileislList = await Scileis.GetAll(); Qustiones.Qustioneslist = Qustiones.GetAll(); //من أجل عم بحث على أنهم غير فعالين Team.ListNotAllAtive.Add(4); Team.ListNotAllAtive.Add(5); //من أجل عم بحث على أنهم غير فعالين //// Team.Setwation.Add("رديف"); Team.Setwation.Add("أساسي"); Team.Setwation.Add("دوار"); Team.Setwation.Add("موظف"); Team.Setwation.Add("مسافر"); Team.Setwation.Add("منقطع"); Team.Setwation.Add("تطوعي غير مؤجور"); /// Valuationname.ValuationnameTypeInt.Add("دائمين"); Valuationname.ValuationnameTypeInt.Add("تجربين"); Valuationname.ValuationnameTypeInt.Add("شامل لكل المتطوعين"); Valuationname.ValuationnameTypeInt.Add("مخصص"); // Vitl.Bransh.Add("حلب"); Vitl.Bransh.Add("حلب-سفيرة"); // #endregion #region interFace ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX3.Columns["Id_TypeofCouress_ta"], TypeofCouress.TypeofCouressList); ClassDataGridViewDo.DataGridAddVuleComBoxEx((DataGridViewComboBoxExColumn)dataGridViewX9.Columns["NameTeamType_Id"], NameTeamType.NameTeamTypeStatic); ClassDataGridViewDo.DataGridEnterGridToWorkNameOfCouress_ta(dataGridViewX3, NameOfCouress.NameOfCouresslist); //dataGridViewX9 ClassDataGridViewDo.DataGridEnterGridToWorkNameTeam_Ta(dataGridViewX9, NameTeam.NameTeamStatic); await Sqldatabasethrding.GetNameForRibbonForm1Combox(intList); #endregion comboBoxEx1.AutoCompleteCustomSource = Combox; }