public static ControlProxy resetEventsSubscriptions(this MainGui mainGui) { return(mainGui.currentProxy().unsubscribeAllEvents() .subscribeToEvents(mainGui.dialog)); }
public static ControlProxy currentProxy(this MainGui mainGui) { return(mainGui.propertyGrid.SelectedObject as ControlProxy); }