private void showIslem(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex != -1) { selectedItem = new Tuple <int, DataGridViewCellCollection>(e.RowIndex, islemListGridView.Rows[e.RowIndex].Cells); IslemDuzenle islemDuzenle = new IslemDuzenle(this); islemDuzenle.ShowDialog(); } }
private void makineDuzenleToolStripMenuItem_Click(object sender, EventArgs e) { if (islemListGridView.SelectedRows.Count == 1) { selectedItem = new Tuple <int, DataGridViewCellCollection>(islemListGridView.SelectedRows[0].Index, islemListGridView.SelectedRows[0].Cells); IslemDuzenle islemDuzenle = new IslemDuzenle(this); islemDuzenle.ShowDialog(); } else { Notification.messageBoxError("BİR SORUN OLUŞTU, KAYIT SEÇİLEMEDİ !"); } }