public ApplicationViewModelWrapper(ApplicationViewModel appModel)
        {
            if (appModel == null)
                throw new ArgumentNullException("appModel");

            New = new TraceLab.UI.WPF.Commands.DelegateCommand(NewFunc);
            Open = new TraceLab.UI.WPF.Commands.DelegateCommand(OpenFunc, CanOpenFunc);
            Save = new TraceLab.UI.WPF.Commands.DelegateCommand(SaveFunc, CanSaveFunc);
            SaveAs = new TraceLab.UI.WPF.Commands.DelegateCommand(SaveAsFunc, CanSaveFunc);

            OpenSettings = new TraceLab.UI.WPF.Commands.DelegateCommand(OpenSettingsFunc);

            SetModel(appModel);
        }
예제 #2
0
        public ApplicationViewModelWrapper(ApplicationViewModel appModel)
        {
            if (appModel == null)
            {
                throw new ArgumentNullException("appModel");
            }

            New    = new TraceLab.UI.WPF.Commands.DelegateCommand(NewFunc);
            Open   = new TraceLab.UI.WPF.Commands.DelegateCommand(OpenFunc, CanOpenFunc);
            Save   = new TraceLab.UI.WPF.Commands.DelegateCommand(SaveFunc, CanSaveFunc);
            SaveAs = new TraceLab.UI.WPF.Commands.DelegateCommand(SaveAsFunc, CanSaveFunc);

            OpenSettings = new TraceLab.UI.WPF.Commands.DelegateCommand(OpenSettingsFunc);

            SetModel(appModel);
        }
예제 #3
0
 public MainWindowBase()
 {
     m_showBenchmarkWizardDialogCommand = new TraceLab.UI.WPF.Commands.DelegateCommand(ShowBenchmarkWizardDialog, CanShowBenchmarkWizard);
     m_showDefineBenchmarkDialogCommand = new TraceLab.UI.WPF.Commands.DelegateCommand(ShowDefineBenchmarkDialog, CanShowDefineBenchmarkDialog);
 }
 public MainWindowBase()
 {
     m_showBenchmarkWizardDialogCommand = new TraceLab.UI.WPF.Commands.DelegateCommand(ShowBenchmarkWizardDialog, CanShowBenchmarkWizard);
     m_showDefineBenchmarkDialogCommand = new TraceLab.UI.WPF.Commands.DelegateCommand(ShowDefineBenchmarkDialog, CanShowDefineBenchmarkDialog);
 }