コード例 #1
0
        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;
            }
        }
コード例 #2
0
 private DefaultEntityProvider()
 {
     defaultEntitySwitch = DefaultSwitch.Create <EntityState, Action <IServiceProvider, TEntity> >();
 }
コード例 #3
0
 private void ConfigureDefaultSwitch()
 {
     DefaultSwitch.SetState(true, animated: false);
     DefaultSwitch.ValueChanged += OnSwitchValueChange;
 }