public CherryPickCommand(IEventStream eventStream, ICommandService commandService, MainThread mainThread, CherryPickerView view)
 {
     this.eventStream    = eventStream;
     this.commandService = commandService;
     this.mainThread     = mainThread;
     this.view           = view;
 }
Beispiel #2
0
        public SelectBaseBranchCommand(IEnumerable <CherryPickConfig> repositories, MainThread mainThread, CherryPickerView view)
        {
            this.mainThread = mainThread;
            this.view       = view;

            IsVisible = IsEnabled = view.IsRootMode;

            if (IsEnabled)
            {
                config = repositories.FirstOrDefault();
            }
        }
Beispiel #3
0
        public FetchCommand(
            IEnumerable <CherryPickConfig> repositories,
            IEventStream eventStream,
            CredentialsHandler credentials,
            CherryPickerView view,
            MainThread mainThread)
        {
            this.repositories = repositories;
            this.eventStream  = eventStream;
            this.credentials  = credentials;
            this.view         = view;
            this.mainThread   = mainThread;

            IsVisible = IsEnabled = !view.IsRootMode;
        }
Beispiel #4
0
 public IgnoreCommand(MainThread mainThread, CherryPickerView view)
 {
     this.mainThread = mainThread;
     this.view       = view;
 }