示例#1
0
        void ShowForm(int id)
        {
            frmRentList frm = new frmRentList(id);

            frm.Show();

            //DockWindow doc = UI.MainMenuForm.MainMenuFrm.GetDockByName("frmDriverRent1");

            //if (doc != null)
            //{
            //    doc.Close();
            //}

            //MainMenuForm.MainMenuFrm.ShowForm(frm);
        }
示例#2
0
 void AddRentItems2_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdLister.CurrentRow != null && grdLister.CurrentRow is GridViewDataRowInfo)
         {
             int         id  = grdLister.CurrentRow.Cells["Id"].Value.ToInt();
             frmRentList frm = new frmRentList(id);
             frm.Show();
         }
     }
     catch (Exception ex)
     {
         ENUtils.ShowMessage(ex.Message);
     }
 }