Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            View.LoginView window = new View.LoginView();

            ViewModel.LoginViewModel vm = new ViewModel.LoginViewModel();
            window.DataContext = vm;

            window.Show();
        }
Esempio n. 2
0
 /// <summary>
 /// Deconnexion
 /// </summary>
 private void Disconnect()
 {
     View.LoginView window = new View.LoginView();
     ViewModel.LoginViewModel vm = new LoginViewModel();
     window.DataContext = vm;
     window.Show();
     CloseSignal = true;
 }