public InitModel(IGitFlowSection parent) :base(parent) { InitializeModel(); OkCommand = new RelayCommand(p => OnInitialize(), p => true); CancelCommand = new RelayCommand(p=> OnCancel(), p => true); OnShowInitCommand = new RelayCommand(p => OnShowInit(), p => true); }
public FeaturesViewModel(IGitFlowSection te) : base(te) { PublishFeatureBranchCommand = new RelayCommand(p => PublishFeatureBranch(), p => CanPublishFeatureBranch); TrackFeatureBranchCommand = new RelayCommand(p => TrackFeatureBranch(), p => CanTrackFeatureBranch); CheckoutFeatureBranchCommand = new RelayCommand(p => CheckoutFeatureBranch(), p => CanCheckoutFeatureBranch); HideProgressBar(); }
private void InitializeModel() { SelectBranchCommand = new RelayCommand(p => SelectBranch(), p => CanSelectBranch); if (!String.IsNullOrEmpty(GitFlowPage.ActiveRepoPath)) { var gf = new VsGitFlowWrapper(GitFlowPage.ActiveRepoPath, GitFlowPage.OutputWindow); CurrentBranch = gf.CurrentBranchLeafName; } else { CurrentBranch = "No branch selected"; } }
public GitFlowPageModel() { SelectBranchCommand = new RelayCommand(p => SelectBranch(), p => CanSelectBranch); }
public ActionViewModel(GitFlowActionSection te) : base(te) { FeatureDeleteBranch = true; ReleaseDeleteBranch = true; ReleaseTagMessageSelected = true; HotfixDeleteBranch = true; HotfixTagMessageSelected = true; ShowStartFeature = Visibility.Collapsed; ShowStartRelease = Visibility.Collapsed; ShowStartHotfix = Visibility.Collapsed; ShowFinishFeature = Visibility.Collapsed; ShowFinishRelease = Visibility.Collapsed; ShowFinishHotfix = Visibility.Collapsed; HideProgressBar(); StartFeatureDropDownCommand = new DropDownLinkCommand(p => StartFeatureDropDown(), p => CanShowStartFeatureDropDown()); StartFeatureCommand = new RelayCommand(p => StartFeature(), p => CanCreateFeature); CancelStartFeatureCommand = new RelayCommand(p => CancelStartFeature(), p => CanCancelFinishCommand()); StartReleaseDropDownCommand = new DropDownLinkCommand(p => StartReleaseDropDown(), p => CanShowStartReleaseDropDown()); StartReleaseCommand = new RelayCommand(p => StartRelease(), p => CanCreateRelease); CancelStartReleaseCommand = new RelayCommand(p => CancelStartRelease(), p => CanCancelFinishCommand()); StartHotfixDropDownCommand = new DropDownLinkCommand(p => StartHotfixDropDown(), p => CanShowStartHotfixDropDown()); StartHotfixCommand = new RelayCommand(p => StartHotfix(), p => CanCreateHotfix); CancelStartHotfixCommand = new RelayCommand(p => CancelStartHotfix(), p => CanCancelFinishCommand()); FinishFeatureDropDownCommand = new DropDownLinkCommand(p => FinishFeatureDropDown(), p => CanShowFinishFeatureDropDown()); FinishFeatureCommand = new RelayCommand(p => FinishFeature(), p => CanFinishFeature); CancelFinishFeatureCommand = new RelayCommand(p => CancelFinishFeature(), p => CanCancelFinishCommand()); FinishReleaseDropDownCommand = new DropDownLinkCommand(p => FinishReleaseDropDown(), p => CanShowFinishReleaseDropDown()); FinishReleaseCommand = new RelayCommand(p => FinishRelease(), p => CanFinishRelease); CancelFinishReleaseCommand = new RelayCommand(p => CancelFinishRelease(), p => CanCancelFinishCommand()); FinishHotfixDropDownCommand = new DropDownLinkCommand(p => FinishHotfixDropDown(), p => CanShowFinishHotfixDropDown()); FinishHotfixCommand = new RelayCommand(p => FinishHotfix(), p => CanFinishHotfix); CancelFinishHotfixCommand = new RelayCommand(p => CancelFinishHotfix(), p => CanCancelFinishCommand()); }