//public void StartForm() //{ // Application.Run(new FrmSplashScreen()); //} private void SlideBack(object sender, EventArgs eventArgs) { _change.Swipe(false); _menu = new PnlMenu(this); _menu.Swipe(); lnkUser.Visible = true; }
private void _change_Close(object sender, EventArgs e) { _change.Swipe(false); _menu = new PnlMenu(this); _menu.Swipe(); lnkUser.Visible = true; }
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 _login_LogOff(object sender, EventArgs e) { _login.Swipe(false); _menu = new PnlMenu(this); _menu.Swipe(); lnkSettings.Visible = false; lnkClose.Visible = false; lnkUser.Visible = true; lnkUser.Text = Username; FrmUserLock.Username = Username; PnlChangePassword.Username = Username; PnlMenu.Username = Username; }