Inheritance: ViewModelBase
Example #1
0
        public WIDExportVM(ToolsVM tools, IDialogProvider dialogProvider)
            : base(tools)
        {
            this._dialogProvider = dialogProvider;

            #region Commands

            BrowseCommand = new DelegateCommand(() =>
            {
                string path = _dialogProvider.OpenBrowseDialog();
                Path        = path;
            });

            ExportCommand = new DelegateCommand(async() =>
            {
                await Export();
            },
                                                () => (
                                                    Tools.CurrentProjectCollection != null &&
                                                    (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
                                                    (IsAllWorkItemTypes == true || Tools.CurrentWorkItemType != null) &&
                                                    !string.IsNullOrEmpty(Path)
                                                    )
                                                );

            #endregion
        }
        public WIDImportVM(ToolsVM tools, IDialogProvider dialogProvider)
            : base(tools)
        {
            this._dialogProvider = dialogProvider;

            #region Commands

            BrowseCommand = new DelegateCommand(() =>
            {
                string fileName = _dialogProvider.OpenFileDialog();
                FileName = fileName;
            });

            ImportCommand = new DelegateCommand(async () =>
            {
                await Import();
            },
            () => (
                Tools.CurrentProjectCollection != null &&
                (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
                !string.IsNullOrEmpty(FileName)
                )
            );

            #endregion
        }
Example #3
0
        public WIDImportVM(ToolsVM tools, IDialogProvider dialogProvider)
            : base(tools)
        {
            this._dialogProvider = dialogProvider;

            #region Commands

            BrowseCommand = new DelegateCommand(() =>
            {
                string fileName = _dialogProvider.OpenFileDialog();
                FileName        = fileName;
            });

            ImportCommand = new DelegateCommand(async() =>
            {
                await Import();
            },
                                                () => (
                                                    Tools.CurrentProjectCollection != null &&
                                                    (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
                                                    !string.IsNullOrEmpty(FileName)
                                                    )
                                                );

            #endregion
        }
        public CategoriesExportVM(ToolsVM tools, IDialogProvider dialogProvider)
            : base(tools)
        {
            this._dialogProvider = dialogProvider;

            #region Commands

            BrowseCommand = new DelegateCommand(() =>
            {
                string path = dialogProvider.OpenBrowseDialog();
                Path = path;
            });

            ExportCommand = new DelegateCommand(async () =>
            {
                await Export();
            },
            () => (
                Tools.CurrentProjectCollection != null &&
                (IsAllTeamProjects || Tools.CurrentTeamProject != null) &&
                !string.IsNullOrEmpty(Path)
                )
            );

            #endregion
        }
Example #5
0
        public MainVM(ITfsServerService tfServerService, ToolsVM firstTools, ToolsVM secondTools)
        {
            this.FirstTools = firstTools;
            string firstToolsUrl = tfServerService.GetFirstServerUrl();
            this.FirstTools.Address = firstToolsUrl;
            this.FirstTools.SetAddressCommand.Execute(this);

            this.SecondTools = secondTools;
            string secondToolsUrl = tfServerService.GetSecondServerUrl();
            this.SecondTools.Address = secondToolsUrl;
            this.SecondTools.SetAddressCommand.Execute(this);
        }
 public WIDViewerVM(ToolsVM tools)
     : base(tools)
 {
     ShowCommand = new DelegateCommand(async() =>
     {
         await Show();
     },
                                       () => (
                                           Tools.CurrentProjectCollection != null && Tools.CurrentTeamProject != null &&
                                           Tools.CurrentWorkItemType != null
                                           )
                                       );
 }
 public WIDViewerVM(ToolsVM tools)
     : base(tools)
 {
     ShowCommand = new DelegateCommand(async () =>
     {
         await Show();
     },
     () => (
         Tools.CurrentProjectCollection != null && Tools.CurrentTeamProject != null &&
         Tools.CurrentWorkItemType != null
         )
     );
 }
Example #8
0
 public ProcessConfigViewerVM(ToolsVM tools)
     : base(tools)
 {
     ShowCommand = new DelegateCommand(async() =>
     {
         await Show();
     },
                                       () =>
                                       (
                                           Tools.CurrentProjectCollection != null &&
                                           Tools.CurrentTeamProject != null
                                       )
                                       );
 }
Example #9
0
        public MainVM(ITfsServerService tfServerService, ToolsVM firstTools, ToolsVM secondTools)
        {
            this.FirstTools = firstTools;
            string firstToolsUrl = tfServerService.GetFirstServerUrl();

            this.FirstTools.Address = firstToolsUrl;
            this.FirstTools.SetAddressCommand.Execute(this);

            this.SecondTools = secondTools;
            string secondToolsUrl = tfServerService.GetSecondServerUrl();

            this.SecondTools.Address = secondToolsUrl;
            this.SecondTools.SetAddressCommand.Execute(this);
        }
 public ProcessConfigViewerVM(ToolsVM tools)
     : base(tools)
 {
     ShowCommand = new DelegateCommand(async () =>
     {
         await Show();
     },
     () =>
         (
         Tools.CurrentProjectCollection != null &&
         Tools.CurrentTeamProject != null
         )
     );
 }
Example #11
0
 public WIDDestroyVM(ToolsVM tools)
     : base(tools)
 {
     DestroyCommand = new DelegateCommand(async() =>
     {
         await Destroy();
     },
                                          () => (
                                              Tools.CurrentProjectCollection != null &&
                                              (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
                                              Tools.CurrentWorkItemType != null
                                              )
                                          );
 }
 public WIDDestroyVM(ToolsVM tools)
     : base(tools)
 {
     DestroyCommand = new DelegateCommand(async () =>
     {
         await Destroy();
     },
     () => (
         Tools.CurrentProjectCollection != null &&
         (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
         Tools.CurrentWorkItemType != null
         )
     );
 }
Example #13
0
 public WIDRenameVM(ToolsVM tools)
     : base(tools)
 {
     RenameCommand = new DelegateCommand(async() =>
     {
         await Rename();
     },
                                         () => (
                                             Tools.CurrentProjectCollection != null &&
                                             (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
                                             Tools.CurrentWorkItemType != null &&
                                             !string.IsNullOrEmpty(NewName)
                                             )
                                         );
 }
 public WIDRenameVM(ToolsVM tools)
     : base(tools)
 {
     RenameCommand = new DelegateCommand(async () =>
     {
         await Rename();
     },
     () => (
         Tools.CurrentProjectCollection != null &&
         (IsAllTeamProjects == true || Tools.CurrentTeamProject != null) &&
         Tools.CurrentWorkItemType != null &&
         !string.IsNullOrEmpty(NewName)
         )
     );
 }
Example #15
0
 public ToolsChildVM(ToolsVM tools)
 {
     this.Tools = tools;
 }
 public ToolsChildVM(ToolsVM tools)
 {
     this.Tools = tools;
 }
Example #17
0
 public ProgressVM(ToolsVM tools)
     : base(tools)
 {
     _progressService = DiManager.Current.Resolve <IProgressService>();
 }
Example #18
0
 public ProgressVM(ToolsVM tools)
     : base(tools)
 {
     _progressService = DiManager.Current.Resolve<IProgressService>();
 }