private void buttonX13_Click_1(object sender, EventArgs e) { ShowAllIteam ShowAllIteam1 = new ShowAllIteam(null); ShowAllIteam1.idVite = idvite; if (ShowAllIteam1.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { WereDeliveryList.Add(ShowAllIteam1.Waredelivare); IntAdderWere.Add(WereDeliveryList.Count - 1); needSeaving = true; } ClassDataGridViewDo.DataGridEnterGridToWorkWereDelivery(dataGridViewX3, WereDeliveryList); }
private void dataGridViewX3_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { ShowAllIteam ShowAllIteam1 = new ShowAllIteam(WereDeliveryList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX3.Rows[e.RowIndex].Cells[0].Value), WereDeliveryList)]); ShowAllIteam1.idVite = idvite; this.Opacity = 0.5; if (ShowAllIteam1.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { WereDeliveryList[ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX3.Rows[e.RowIndex].Cells[0].Value), WereDeliveryList)] = ShowAllIteam1.Waredelivare; if (ClassConvert.Convint(dataGridViewX3.Rows[e.RowIndex].Cells[0].Value) > 0) { IntEditWere.Add(ClassDataGridViewDo.RetunIndexByIdSech(ClassConvert.Convint(dataGridViewX3.Rows[e.RowIndex].Cells[0].Value), WereDeliveryList)); } needSeaving = true; } ClassDataGridViewDo.DataGridEnterGridToWorkWereDelivery(dataGridViewX3, WereDeliveryList); this.Opacity = 1; } }