private EnableTimerViewController(DeviceDetailViewModel device, ProgramDisableFeatureViewModel feature) : base() { ExceptionUtility.Try(() => { this._feature = feature; this._device = device; this.Initialize(); this._navBarView.TitleText = feature.SettingName; }); }
public static EnableTimerViewController CreateInstance(DeviceDetailViewModel device, ProgramDisableFeatureViewModel feature) { ExceptionUtility.Try(() => { if (_instance != null) { _instance.Dispose(); _instance = null; } _instance = new EnableTimerViewController(device, feature); }); return(_instance); }