public ActionViewModel(GitFlowActionSection te) : base(te) { FeatureDeleteLocalBranch = true; FeatureDeleteRemoteBranch = true; FeatureSquash = false; FeatureNoFastForward = false; ReleaseDeleteBranch = true; ReleaseTagMessageSelected = true; ReleaseNoBackMerge = false; 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()); }
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()); }