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

                this.NavigateTo(timerVc);
            });
        }
Exemplo n.º 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);
        }