ATMLCommonLibrary.controls.signal.SignalFunctionTypeControl.otherAttributes_CellContentClick C# (CSharp) Méthode

otherAttributes_CellContentClick() private méthode

private otherAttributes_CellContentClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewCellEventArgs
Résultat void
        private void otherAttributes_CellContentClick( object sender, DataGridViewCellEventArgs e )
        {
            var senderGrid = (DataGridView) sender;

            if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn &&
                e.RowIndex >= 0)
            {
                var form = new DatumForm();
                if (DialogResult.OK == form.ShowDialog())
                {
                    DatumType value = form.Datum;
                    senderGrid.Rows[e.RowIndex].Cells[1].Value = value.ToString();
                }
            }
        }