Exemplo n.º 1
0
        private void toolStripMenuItemAccountView_Click(object sender, EventArgs e)
        {
            AccountView accountView = new AccountView {
                MdiParent = this
            };

            accountView.Show();
        }
Exemplo n.º 2
0
        public void OpenAccount()
        {
            AccountViewModel vm   = new AccountViewModel(customer);
            AccountView      view = new AccountView();

            view.DataContext = vm;
            view.Show();
            Application.Current.Windows[0].Close();
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
 void Header_OnAccountClick()
 {
     if (accountView.IsActive)
     {
         accountView.Hide();
     }
     else
     {
         accountView.Show();
     }
 }
Exemplo n.º 5
0
        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 toolStripMenuItemAccountView_Click(object sender, EventArgs e)
 {
     AccountView accountView = new AccountView { MdiParent = this };
     accountView.Show();
 }
Exemplo n.º 7
0
        private void materialFlatButton1_Click(object sender, EventArgs e)
        {
            AccountView a = new AccountView();

            a.Show();
        }