Пример #1
0
 private void FrmUnFinishTransport_Select_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         this.Output       = null;
         this.DialogResult = DialogResult.Cancel;
         this.Close();
     }
 }
Пример #2
0
        void Return()
        {
            GridRow gridRow = superGridControl1.PrimaryGrid.ActiveRow as GridRow;

            if (gridRow == null)
            {
                return;
            }

            this.Output       = (gridRow.DataItem as View_UnFinishTransport);
            this.DialogResult = DialogResult.OK;
            this.Close();
        }