예제 #1
0
        public void Edit(object param)
        {
            SignUpWindow    SignUpWindow = new SignUpWindow();
            SignUpViewModel signUpVM     = new SignUpViewModel(SelectedUser, users);

            SignUpWindow.DataContext = signUpVM;
            App.Current.MainWindow.Close();
            App.Current.MainWindow = SignUpWindow;
            SignUpWindow.Show();
        }
예제 #2
0
        public void Add(object parameter)
        {
            SignUpWindow    signUpWindow = new SignUpWindow();
            SignUpViewModel signUpVM     = new SignUpViewModel(users);

            signUpWindow.DataContext = signUpVM;
            App.Current.MainWindow.Close();
            App.Current.MainWindow = signUpWindow;
            signUpWindow.Show();
        }
예제 #3
0
        public void SignUp(object param)
        {
            SignUpWindow    window   = new SignUpWindow();
            SignUpViewModel signUpVM = new SignUpViewModel();

            window.DataContext = signUpVM;
            App.Current.MainWindow.Close();
            App.Current.MainWindow = window;
            window.Show();
        }