private void gridControl1_DoubleClick(object sender, EventArgs e) { if (gridView1.FocusedRowHandle >= 0) { var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle); var f =new Customer(); f._customerno = dr["CUSTNO"].ToString(); f.Show(); f.DoView(); } }
private void barButtonItem45_ItemClick(object sender, ItemClickEventArgs e) { opentab = 0; Customer frm = null; if ((frm = (Customer)IsFormAlreadyOpen(typeof(Customer))) == null) { frm = new Customer(); frm.MdiParent = this; frm.Show(); } else { frm.Select(); } }
private void toolStripButton1_Click(object sender, EventArgs e) { var f = new Customer(); f.Show(); }