示例#1
0
        private void ViewAccount()
        {
            if (AccountsDataGrid.SelectedItems.Count == 0)
            {
                return;
            }
            AccountWindow window = new AccountWindow((Account)AccountsDataGrid.SelectedItem);

            window.Show();
        }
        private void CmViewAccount(object sender, RoutedEventArgs e)
        {
            var account = AccountsDataGrid.SelectedItem as Account;

            if (account == null)
            {
                return;
            }

            var window = new AccountWindow(account);

            window.Show();
        }
        private void CmViewAccount(object sender, RoutedEventArgs e)
        {
            var account = AccountsDataGrid.SelectedItem as Account;

            if (account == null)
            {
                return;
            }

            var window = new AccountWindow(account);
            window.Show();
        }
 private void ViewAccount()
 {
     if (AccountsDataGrid.SelectedItems.Count == 0)
     {
         return;
     }
     AccountWindow window = new AccountWindow((Account)AccountsDataGrid.SelectedItem);
     window.Show();
 }