void ShowForm(int id)
        {
            frmRentList2 frm = new frmRentList2(id);

            frm.Show();

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

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

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