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