/// <summary> /// Waits for the Settings to become available, either by the service or /// system setting the instance property. /// </summary> /// <param name="sender">The source timer.</param> /// <param name="e">The event arguments.</param> private void OnDelayedInitializationTick(object sender, EventArgs e) { if (_harness != null && _harness.Settings != null) { _delayedInitializationTimer.Stop(); _delayedInitializationTimer.Tick -= OnDelayedInitializationTick; _delayedInitializationTimer = null; // Tag expression support if (Application.Current != null && Application.Current.Host != null && Application.Current.Host.Source != null && Application.Current.Host.Source.Query != null && Application.Current.Host.Source.Query.Contains("test_run")) { StartTestRun(); } else { MobileStartup tagEditor; if (_harness.Settings != null) { tagEditor = new MobileStartup(_harness.Settings.TagExpression); } else { tagEditor = new MobileStartup(); } CreateAndInsertSlide("Tag Expressions", tagEditor); // overlayGrid.Children.Add(tagEditor); // overlayGrid.Visibility = System.Windows.Visibility.Visible; tagEditor.Complete += OnTagExpressionSelected; } } }
/// <summary> /// Waits for the Settings to become available, either by the service or /// system setting the instance property. /// </summary> /// <param name="sender">The source timer.</param> /// <param name="e">The event arguments.</param> private void OnDelayedInitializationTick(object sender, EventArgs e) { if (_harness != null && _harness.Settings != null) { _delayedInitializationTimer.Stop(); _delayedInitializationTimer.Tick -= OnDelayedInitializationTick; _delayedInitializationTimer = null; // Tag expression support if (Application.Current != null && Application.Current.Host != null && Application.Current.Host.Source != null && Application.Current.Host.Source.Query != null && Application.Current.Host.Source.Query.Contains("test_run")) { StartTestRun(); } else { MobileStartup tagEditor; if (_harness.Settings != null) { tagEditor = new MobileStartup(_harness.Settings.TagExpression); } else { tagEditor = new MobileStartup(); } CreateAndInsertSlide("Tag Expressions", tagEditor); // overlayGrid.Children.Add(tagEditor); // overlayGrid.Visibility = System.Windows.Visibility.Visible; tagEditor.Complete += OnTagExpressionSelected; } } }