public static ControlProxy subscribeToEvents(this ControlProxy controlProxy, EventFilterDialog dialog)
 {
     if (controlProxy.notNull() && dialog.notNull() && dialog.EventList.notNull())
     {
         "[ControlProxy] Subscribing to Events".info();
         foreach (EventDescriptor ed in controlProxy.GetEvents())
         {
             if (dialog.EventList[ed.Name].Display)
             {
                 controlProxy.SubscribeEvent(ed);
             }
         }
     }
     return(controlProxy);
 }
Exemplo n.º 2
0
 public MainGui()
 {
     dialog = new EventFilterDialog();
     this.enableVisualStudioObjectCreation();
 }
 public static ControlProxy subscribeToEvents(this ControlProxy controlProxy, EventFilterDialog dialog)
 {
     if (controlProxy.notNull() && dialog.notNull() && dialog.EventList.notNull())
     {
         "[ControlProxy] Subscribing to Events".info();
         foreach (EventDescriptor ed in controlProxy.GetEvents())
             if (dialog.EventList[ed.Name].Display)
             {
                 controlProxy.SubscribeEvent(ed);
             }
     }
     return controlProxy;
 }
Exemplo n.º 4
0
 public MainGui()
 {
     dialog = new EventFilterDialog();
     this.enableVisualStudioObjectCreation();
 }