Пример #1
0
        private void OnStashSaveClick(object sender, EventArgs e)
        {
            bool advanced = Control.ModifierKeys == Keys.Shift;

            if (advanced)
            {
                using (var dlg = new StashSaveDialog(_repository))
                {
                    dlg.Run(this);
                }
            }
            else
            {
                GuiCommands.SaveStash(this, Repository.Stash, false, false, null);
            }
        }
Пример #2
0
        private void InvokeRevertControl(RevertControl control)
        {
            var parent = _guiProvider.Environment.MainForm;

            GuiCommands.Revert(parent, Repository, control);
        }
Пример #3
0
        private void InvokeCherryPickControl(CherryPickControl control)
        {
            var parent = _guiProvider.Environment.MainForm;

            GuiCommands.CherryPick(parent, Repository, control);
        }
Пример #4
0
        private void OnStashApplyClick(object sender, EventArgs e)
        {
            bool restoreIndex = Control.ModifierKeys == Keys.Shift;

            GuiCommands.ApplyStashedState(this, _repository.Stash, restoreIndex);
        }
Пример #5
0
 private void OnPullClick(object sender, EventArgs e)
 {
     GuiCommands.Pull(_guiProvider.Environment.MainForm, Repository);
 }