예제 #1
0
        private void CmExportCustom(object sender, RoutedEventArgs e)
        {
            if (AccountsDataGrid.SelectedItems.Count == 0)
            {
                return;
            }
            ExportWindow window = new ExportWindow(AccountsDataGrid.SelectedItems.Cast <Account>());

            window.ShowDialog();
        }
        private void CmExportCustom(object sender, RoutedEventArgs e)
        {
            if (AccountsDataGrid.SelectedItem == null)
            {
                return;
            }

            var accounts = AccountsDataGrid.SelectedItems.Cast <Account>();
            var window   = new ExportWindow(accounts);

            window.ShowDialog();
        }
예제 #3
0
        private void CmExportCustom(object sender, RoutedEventArgs e)
        {
            if (AccountsDataGrid.SelectedItem == null)
            {
                return;
            }

            var accounts = AccountsDataGrid.SelectedItems.Cast<Account>();
            var window = new ExportWindow(accounts);
            window.ShowDialog();
        }
 private void CmExportCustom(object sender, RoutedEventArgs e)
 {
     if (AccountsDataGrid.SelectedItems.Count == 0)
     {
         return;
     }
     ExportWindow window = new ExportWindow(AccountsDataGrid.SelectedItems.Cast<Account>());
     window.ShowDialog();
 }