/// <summary> /// Method used to excute <see cref="MainWindow"/> loaded event /// </summary> /// <param name="param"></param> private void WindowLoaded(object param) { #if DEBUG if (CanAutomate) { try { BindingErrorAutomation.RunBindingErrorAutomation(this); } catch (Exception e) { ErrorLogging.LogError(e.Message + "\n" + e.StackTrace); } } #endif }
/// <summary> /// Method used to excute <see cref="MainWindow"/> loaded event /// </summary> /// <param name="param"></param> private void WindowLoaded(object param) { #if DEBUG if (CanAutomate) { try { BindingErrorAutomation.RunBindingErrorAutomation(this); } catch (Exception exception) { if (this.SelectedProduct != null && this.SelectedSample != null) { ErrorLogging.LogError("Product Sample\\" + this.SelectedProduct.Product + "\\" + this.SelectedSample.SampleName + "@@" + exception.Message + " StackTrace: " + exception.StackTrace + " Exception Source: " + exception.Source); } else if (this.SelectedShowcaseSample != null) { ErrorLogging.LogError("Product ShowCase\\" + this.SelectedShowcaseSample.SampleName + "\\" + this.SelectedShowcaseSample.SampleName + "@@" + exception.Message + " StackTrace: " + exception.StackTrace + " Exception Source: " + exception.Source); } } } #endif }