public FrmMain() { //var t = new Thread(StartForm); //t.Start(); //Thread.Sleep(2000); InitializeComponent(); //t.Abort(); StyleManager = msmMain; _login = new PnlLogin(this); _menu = new PnlMenu(this); _change = new PnlChangePassword(this); Settings.Default.StyleManager = msmMain; _login.SettingClosed += _login_SettingClosed; _login.LogInSuccess += _login_LogInSuccess; _change.Close += _change_Close; PnlLogin.LogOff += _login_LogOff; PnlLogin.ShowDem += ShowDem; PnlChangePassword.SlideBack += SlideBack; _login.Swipe(); StyleManager.Theme = Settings.Default.Theme; StyleManager.Style = Settings.Default.Style; }
private void logOffToolStripMenuItem_Click(object sender, EventArgs e) { _menu.Swipe(false); _login = new PnlLogin(this); _login.Swipe(); lnkSettings.Visible = true; lnkClose.Visible = true; lnkUser.Visible = false; }