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);
 }
示例#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;
 }
示例#4
0
 public MainGui()
 {
     dialog = new EventFilterDialog();
     this.enableVisualStudioObjectCreation();
 }