private void LaunchTimerScreen() { ExceptionUtility.Try(() => { var timerVc = WateringTimerViewController.CreateInstance(this.Device, this.WaterSelectedStations); this.NavigateTo(timerVc); }); }
public static WateringTimerViewController CreateInstance(DeviceDetailViewModel device, Action <IEnumerable <PumpViewModel>, int> waterSelectedStations) { ExceptionUtility.Try(() => { if (_instance != null) { _instance.Dispose(); _instance = null; } _instance = new WateringTimerViewController(device, waterSelectedStations); }); return(_instance); }