Esempio n. 1
0
 private void SaveNewMeasurement(string message)
 {
     if (message.Equals("LoginMessage"))
     {
         var newView = new View.MainView();
         newView.Show();
     }
 }
Esempio n. 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //if ((txtName.Text != "") & (txtPassword.Text != ""))
            //{
            //    var user = new User();
            //    user.Name = txtName.Text;
            //    user.Password = txtPassword.Text;
            //    if (auth.AuthentificateUser(user))

            //    {
                    MainViewModel main = new MainViewModel();
                    MainView window = new View.MainView { DataContext = main };
                    window.Show();
                    this.Close();
            //    }

            //}
        }
 public void openMainView()
 {
     mainViewModel = new MainViewModel();
     View.MainView mainView = new View.MainView();
     mainView.DataContext = mainViewModel;
     mainView.Show();
 }