Пример #1
0
 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();
     }
 }
Пример #2
0
        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();
            }

        }
Пример #3
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     var f = new Customer();
     f.Show();
 }