示例#1
0
        public static void OpenWelcomeForm()
        {
            frmWelcome welcomeFrm = new frmWelcome();

            welcomeFrm.MdiParent = GlobalData.FrmName;
            welcomeFrm.Dock      = DockStyle.Fill;
            welcomeFrm.Show();
        }
        /// <summary>
        /// This method is called when application is loaded
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SyncClientApp_Load(object sender, EventArgs e)
        {
            GlobalData.Language   = "nb-NO";
            GlobalData.FrmName    = this;
            GlobalData.LinkNumber = 1;
            frmWelcome frmStart = new frmWelcome();

            frmStart.MdiParent = GlobalData.FrmName;
            frmStart.Dock      = DockStyle.Fill;
            frmStart.Show();
            LocalizeText();
            btnBack.Enabled = false;
            InitialConfiguration();
            EnableDsableLinks(false);
            lnkLblWelcome.Links[0].Enabled = true;
            if (Common.GetPreviousAppSettings() != null)
            {
                lnkLblInstall.Links[0].Enabled = true;
                GlobalData.InstallationPath    = System.IO.Directory.GetParent(System.IO.Path.GetDirectoryName(Scheduler.GetScheduledTaskPath("SyncClientApp"))).FullName;
            }
        }