예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 /// <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);
     }
 }