Exemplo n.º 1
0
 private void MainPage_Load(object sender, EventArgs e)
 {
     try
     {
         //this.Icon = new Icon("gnome_network_offline.ico");
         //this.Location = new Point(0, 0);
         //this.Size = Screen.PrimaryScreen.WorkingArea.Size;
         //this.Icon = new Icon("gnome_network_offline.ico");
         //lblUserName.Text = GlobalVariables.LGNID;
         //lblDepartment.Text = GlobalVariables.DeptName;
         //lblVersion.Text = GlobalVariables.version;
         Sqlconn          = new SqlConnection(str);
         pnlTruck.Visible = true;
         if (GlobalVariables.OfflineFlag == "Y")
         {
         }
         else
         {
             //GetScreens();
             foreach (Form childForm in MdiChildren)
             {
                 childForm.Close();
             }
             DelegateDetails DDE = new DelegateDetails();
             DDE.MdiParent = this;
             DDE.Show();
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
        private void delegateEntryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pnlTruck.Visible = true;
            foreach (Form childForm in MdiChildren)
            {
                childForm.Close();
            }
            DelegateDetails DDE = new DelegateDetails();

            DDE.MdiParent = this;
            DDE.Show();
        }