コード例 #1
0
        private void showOperator(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                selectedItem = new Tuple <int, DataGridViewCellCollection>(e.RowIndex, operatorListGridView.Rows[e.RowIndex].Cells);

                OperatorDuzenle operatorDuzenle = new OperatorDuzenle(this);
                operatorDuzenle.ShowDialog();
            }
        }
コード例 #2
0
 private void operatorDuzenleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (operatorListGridView.SelectedRows.Count == 1)
     {
         selectedItem = new Tuple <int, DataGridViewCellCollection>(operatorListGridView.SelectedRows[0].Index, operatorListGridView.SelectedRows[0].Cells);
         OperatorDuzenle operatorDuzenle = new OperatorDuzenle(this);
         operatorDuzenle.ShowDialog();
     }
     else
     {
         Notification.messageBoxError("BİR SORUN OLUŞTU, KAYIT SEÇİLEMEDİ!");
     }
 }