Esempio n. 1
0
        private void barButtonItem8_ItemClick(object sender, ItemClickEventArgs e)
        {
            opentab = 1;

            NewPurReturn frm = null;
            if ((frm = (NewPurReturn)IsFormAlreadyOpen(typeof(NewPurReturn))) == null)
            {
                frm = new NewPurReturn();
                frm.MdiParent = this;
                frm.Show();
            }
            else
            {
                frm.Select();
            }
            opentab = 1;
        }
Esempio n. 2
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         var tranid = gridView1.GetDataRow(gridView1.FocusedRowHandle);
         if(RptType)
         {
             var f = new NewPurInv {Purid = tranid["PURINVID"].ToString()};
             f.Show();
             f.DoView();
         }
         else
         {
             var f = new NewPurReturn { Purid = tranid["RETURNID"].ToString() };
             f.Show();
             f.DoView();
         }
     }
 }