void ReleaseDesignerOutlets() { if (DefaultSwitch != null) { DefaultSwitch.Dispose(); DefaultSwitch = null; } if (CustomSwitch != null) { CustomSwitch.Dispose(); CustomSwitch = null; } if (DisabledSwitch != null) { DisabledSwitch.Dispose(); DisabledSwitch = null; } if (CustomSwitchStatus != null) { CustomSwitchStatus.Dispose(); CustomSwitchStatus = null; } if (DefaultSwitchStatus != null) { DefaultSwitchStatus.Dispose(); DefaultSwitchStatus = null; } if (DisabledSwitchStatus != null) { DisabledSwitchStatus.Dispose(); DisabledSwitchStatus = null; } }
private DefaultEntityProvider() { defaultEntitySwitch = DefaultSwitch.Create <EntityState, Action <IServiceProvider, TEntity> >(); }
private void ConfigureDefaultSwitch() { DefaultSwitch.SetState(true, animated: false); DefaultSwitch.ValueChanged += OnSwitchValueChange; }