Beispiel #1
0
        public MainWindow(MainWindowViewModel viewModel, LoginWindowViewModel loginViewModel)
        {
            this.viewModel = viewModel;
            this.loginViewModel = loginViewModel;

            InitializeComponent();

            LoginView.DataContext = loginViewModel;
            //Log();
            //jay
        }
 private void BtnClicked(object sender, RoutedEventArgs e)
 {
     this.viewModel = (LoginWindowViewModel)DataContext;
     viewModel.LogIn();
 }