Example #1
0
    /// <summary>
    /// Removes the given versionable object from the staging area
    /// </summary>
    /// <param name="controller">The versionable object to remove from the staging area</param>
    public void Unstage(VersionController controller)
    {
        if (stagingArea.Contains(controller))
        {
            stagingArea.Remove(controller);
            controller.HideStagedState();
            lastUnstagedObject = controller;

            if (unstageTrigger != null)
            {
                unstageTrigger.Trigger();
            }
        }

        UIController.Instance().UpdateOverlay();
    }