/// <summary> /// Removes the given widget name from the given context. The specified widget is now 'closed'. /// </summary> /// <param name="name"></param> /// <param name="widgetContext"></param> public void RemoveWidgetName(string name, string widgetContext) { LoadFromContext(widgetContext); if (OpenWidgetNames.Contains(name)) { OpenWidgetNames.Remove(name); SaveContext(widgetContext); } }
/// <summary> /// Adds the given widget name to the given context. The specified widget is now 'open'. /// </summary> /// <param name="name"></param> /// <param name="widgetContext"></param> public void AddWidgetName(string name, string widgetContext) { LoadFromContext(widgetContext); if (!OpenWidgetNames.Contains(name)) { OpenWidgetNames.Add(name); SaveContext(widgetContext); } }