private void LaunchTimerScreen()
        {
            ExceptionUtility.Try(() =>
            {
                var timerVc = CircuitsTimerViewController.CreateInstance(this.Device, this.TestSelectedCircuits);

                this.NavigateTo(timerVc);
            });
        }
Beispiel #2
0
        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);
        }