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 }
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 }
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 ) ); }
public ProcessConfigViewerVM(ToolsVM tools) : base(tools) { ShowCommand = new DelegateCommand(async() => { await Show(); }, () => ( Tools.CurrentProjectCollection != null && Tools.CurrentTeamProject != null ) ); }
public ProcessConfigViewerVM(ToolsVM tools) : base(tools) { ShowCommand = new DelegateCommand(async () => { await Show(); }, () => ( Tools.CurrentProjectCollection != null && Tools.CurrentTeamProject != null ) ); }
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 ) ); }
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) ) ); }
public ToolsChildVM(ToolsVM tools) { this.Tools = tools; }
public ProgressVM(ToolsVM tools) : base(tools) { _progressService = DiManager.Current.Resolve <IProgressService>(); }
public ProgressVM(ToolsVM tools) : base(tools) { _progressService = DiManager.Current.Resolve<IProgressService>(); }