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); }
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; } }