Пример #1
0
 public void StartStashSaveDialog()
 {
     using (var dlg = new StashSaveDialog(_repository))
     {
         dlg.Run(_environment.MainForm);
     }
 }
Пример #2
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);
            }
        }