示例#1
0
        private void Dashboard_Load(object sender, EventArgs e)
        {
            try
            {
                home home = new home();
                home.TopLevel = false;
                pnlBody.Controls.Add(home);
                home.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                home.Dock            = DockStyle.Fill;
                home.Show();

                txtVersion.Text = "1.0.2";

                string path1 = @"c:\AdityaMedical\Update";
                string path2 = @"c:\AdityaMedical\Backup";

                if (!Directory.Exists(path1))
                {
                    DirectoryInfo di = Directory.CreateDirectory(path1);
                }

                if (!Directory.Exists(path2))
                {
                    DirectoryInfo di = Directory.CreateDirectory(path2);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#2
0
 private void Dashboard_Load(object sender, EventArgs e)
 {
     try
     {
         home home = new home();
         home.TopLevel = false;
         pnlBody.Controls.Add(home);
         home.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         home.Dock            = DockStyle.Fill;
         home.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }