Esempio n. 1
0
        private void OnClickPopStash()
        {
            IGitStashResults results = wrapper.PopStash(new GitStashOptions(), Stash.Index);

            if (!string.IsNullOrEmpty(results.Message))
            {
                page.ShowNotification(results.Message, NotificationType.Information);
            }
            OnAfterDeleted();
        }
        private void OnClickCreateStashButton()
        {
            IGitStashSaveOptions options = new GitStashOptions {
                All = StashAll, Ignored = StashIgnored, KeepIndex = StashKeepIndex, Untracked = StashUntracked, Message = NewStashMessage
            };
            IGitStashResults results = wrapper.SaveStash(options);

            if (!string.IsNullOrEmpty(results.Message))
            {
                page.ShowNotification(results.Message, NotificationType.Information);
            }
            if (results.Success)
            {
                NewStashMessage = "";
                OnPropertyChanged("Stashes");
                OnPropertyChanged("NewStashMessage");
                OnPropertyChanged("CreateStashButtonCommand");
            }
            else
            {
            }
        }