private void ExportCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            _m.CanExecuteCommand = false;
            try
            {
                LogExportModel exportModel = new LogExportModel(_m.Logger, _m.BuildEntries);

                if (_m.SelectedTabIndex == 0) // Export System Logs
                {
                    exportModel.SetSystemLog();
                }
                else // Export Build Logs
                {
                    exportModel.SetBuildLog(_m.SelectedBuildIndex, _m.BuildLogShowComments, _m.BuildLogShowMacros);
                }

                LogExportWindow dialog = new LogExportWindow(exportModel)
                {
                    Owner = this
                };
                dialog.ShowDialog();
            }
            finally
            {
                _m.CanExecuteCommand = true;
                CommandManager.InvalidateRequerySuggested();
            }
        }
Exemple #2
0
 public LogExportWindow(LogExportModel model)
 {
     DataContext = _m = model;
     InitializeComponent();
 }