Ejemplo n.º 1
0
        //Window creation
        public static BranchWindow ShowWindow(Action onClose)
        {
            //Show existing window instance. If one doesn't exist, make one.
            BranchWindow window = (BranchWindow)BranchWindow.GetWindow(typeof(BranchWindow), true, "Stash");

            window.onClose = onClose;

            return(window);
        }
Ejemplo n.º 2
0
 //Run when button is clicked
 public override void OnClick(GitGudWindow window)
 {
     BranchWindow.ShowWindow(GitEvents.TriggerOnLocalChange);
 }