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); }
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; }