Example #1
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("Отсутствует соединение с базой");
            }
        }