public void StartStashSaveDialog() { using(var dlg = new StashSaveDialog(_repository)) { dlg.Run(_environment.MainForm); } }
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); } }