예제 #1
0
        private void AddWelcome()
        {
            TabPage tabPage = new TabPage("Welcome");

            tabPage.ImageIndex = 3;
            Welcome WelcomeScrn = new Welcome();

            WelcomeScrn.BringToFront();
            WelcomeScrn.Dock = DockStyle.Fill;
            tabPage.Controls.Add(WelcomeScrn);
            editortabsleft.TabPages.Add(tabPage);
        }
예제 #2
0
파일: Main.cs 프로젝트: ycaihua/CurveLock
        private void MainLoad(object sender, EventArgs e)
        {
            Text += " v" + Assembly.GetExecutingAssembly().GetName().Version.ToString(2);

            //display the login panel
            var login = new Login();

            login.Complete += LoginComplete;
            content.Controls.Add(login);

            //if this is the first time we've run the app, show the intro
            // and walk the user through creating an identity););
            if (Settings.Default.IsFirstRun)
            {
                var wlcm = new Welcome();
                wlcm.Complete += WelcomeComplete;
                content.Controls.Add(wlcm);
                wlcm.BringToFront();

                //update the setting so we don't show this next time.
                Settings.Default.IsFirstRun = false;
            }
        }