Beispiel #1
0
 static void OnWidgetRemoved(object s, WidgetInfoEventArgs args)
 {
     foreach (WidgetInfo c in openWindows.Keys)
     {
         if (c.Name == args.WidgetInfo.Name)
         {
             CloseWindow(c);
             return;
         }
     }
 }
Beispiel #2
0
 static void OnWidgetAdded(object s, WidgetInfoEventArgs args)
 {
     OpenWindow(args.WidgetInfo);
 }