Esempio n. 1
0
        //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;
        }
Esempio n. 2
0
 private void _change_Close(object sender, EventArgs e)
 {
     _change.Swipe(false);
     _menu = new PnlMenu(this);
     _menu.Swipe();
     lnkUser.Visible = true;
 }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
 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;
 }