private void toolStripMenuItemAccountView_Click(object sender, EventArgs e) { AccountView accountView = new AccountView { MdiParent = this }; accountView.Show(); }
public void OpenAccount() { AccountViewModel vm = new AccountViewModel(customer); AccountView view = new AccountView(); view.DataContext = vm; view.Show(); Application.Current.Windows[0].Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { var button = sender as Button; string theValue = button.Tag.ToString(); Debug.Print(theValue); var newWindow = new AccountView(); newWindow.Show(); }
void Header_OnAccountClick() { if (accountView.IsActive) { accountView.Hide(); } else { accountView.Show(); } }
private void App_StartupAsync(object sender, StartupEventArgs e) { if (ConnectionClient.ConnectionTest()) { AccountViewModel viewModel = new AccountViewModel(); MainWindow = new AccountView() { DataContext = viewModel }; MainWindow.Show(); RepositoryAccount.LoadAsync(); } else { MessageBox.Show("Отсутствует соединение с базой"); } }
private void materialFlatButton1_Click(object sender, EventArgs e) { AccountView a = new AccountView(); a.Show(); }