Пример #1
0
 void OnAddWidget(object s, Stetic.WidgetInfoEventArgs args)
 {
     if (!disposed)
     {
         RegisterWindow(args.WidgetInfo, true);
     }
 }
Пример #2
0
 void OnRemoveWidget(object s, Stetic.WidgetInfoEventArgs args)
 {
     if (disposed || Windows == null)
     {
         return;
     }
     foreach (GuiBuilderWindow form in Windows)
     {
         if (form.RootWidget.Name == args.WidgetInfo.Name)
         {
             UnregisterWindow(form);
             break;
         }
     }
 }