private void Dgv_DoubleClick(object sender, EventArgs e) { DXMouseEventArgs args = e as DXMouseEventArgs; GridView view = sender as GridView; GridHitInfo info = view.CalcHitInfo(args.Location); if (info.InRow || info.InRowCell) { Frm_CustomersSuppliers Frm = new Frm_CustomersSuppliers(Convert.ToInt32(view.GetFocusedRowCellValue(nameof(treasurys.id)))); Frm.Show(); } }
public override void New() { Frm_CustomersSuppliers Frm = new Frm_CustomersSuppliers(IsCustomer); Frm.Show(); }