private void customersGridView_DoubleClick(object sender, EventArgs e)
 {
     GridHitInfo hi = customersGridView.CalcHitInfo(customersGridControl.PointToClient(MousePosition));
     if (hi.InRowCell)
     {
         GridView view = (GridView)sender;
         GridHitInfo info = view.CalcHitInfo(view.GridControl.PointToClient(Control.MousePosition));
         int id = (int)view.GetRowCellValue(info.RowHandle, "Id");
         var form = new AddEditOrderView(id);
         form.MdiParent = this.MdiParent;
         form.Show();
     }
 }
Esempio n. 2
0
 private void addNewOrderBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var form = new AddEditOrderView();
     form.MdiParent = this;
     form.Show();
 }