Example #1
0
 public Main()
 {
     try
     {
         InitializeComponent();
         initVariables();
         ////Region = System.Drawing.Region.FromHrgn(Utilities.CreateRoundRectRgn(0, 0, 1150, 635, 20, 20));
         this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
         ////this.FormBorderStyle = FormBorderStyle.Fixed3D;
         adjustForScreenResolution();
         //addButton("BtnAccount", 0, "AccountGroup");
         //addButton("BtnFinance", 1, "FinanceGroup");
         //addButton("BtnReports", 2, "ReportGroup");
         createMainHeaderButtons();
         //createMainOptionButtons();
         pnlMainOptionButtons.AutoScroll = true;
         lblVersion.Text            = CurrentVersion;
         txtVersionUpdate.ForeColor = Color.Red;
         string   VerLoc = UpdateTable.getLatestVersionOfERP();
         string[] verStr = VerLoc.Split(Main.delimiter1);
         if (!CurrentVersion.Trim().Equals(verStr[0].Trim()))
         {
             txtVersionUpdate.Text = "Latest ERP version is " + verStr[0].Trim() + ". Please update to latest version";
         }
         else
         {
             txtVersionUpdate.Text = "";
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Main() : Error 1");
     }
 }