Esempio n. 1
0
        private void BtnAddAccountClick(object sender, RoutedEventArgs e)
        {
            if (AccountWindow.Instance != null)
            {
                return;
            }

            var window = new AccountWindow();
            window.ShowDialog();
        }
Esempio n. 2
0
        private void BtnAddAccountClick(object sender, RoutedEventArgs e)
        {
            if (AccountWindow.Instance != null)
            {
                return;
            }

            var window = new AccountWindow();

            window.ShowDialog();
        }
Esempio n. 3
0
        private void CmEditClick(object sender, RoutedEventArgs e)
        {
            if (Checker.IsChecking)
            {
                this.ShowMessageAsync("Error", "You can't edit accounts while the checker is working.");
                return;
            }

            var account = _accountsGrid.SelectedItem as Account;

            if (AccountWindow.Instance != null || account == null)
            {
                return;
            }

            var w = new AccountWindow(account);

            w.ShowDialog();
        }
Esempio n. 4
0
        private void CmEditClick(object sender, RoutedEventArgs e)
        {
            if (Checker.IsChecking)
            {
                this.ShowMessageAsync("Error", "You can't edit accounts while the checker is working.");
                return;
            }

            var account = _accountsGrid.SelectedItem as Account;

            if (AccountWindow.Instance != null || account == null)
            {
                return;
            }

            var w = new AccountWindow(account);
            w.ShowDialog();
        }