예제 #1
0
        /// <summary>
        /// Method used to excute   <see cref="ProductDemosWindow"/> loaded event
        /// </summary>
        /// <param name="param"></param>
        private void ProductWindowLoaded(object param)
        {
#if DEBUG
            if (CanAutomate)
            {
                try
                {
                    BindingErrorAutomation.UpdateSelectedSample();
                }
                catch (Exception e)
                {
                    ErrorLogging.LogError(e.Message + "\n" + e.StackTrace);
                }
            }
#endif
        }
        /// <summary>
        /// Method used to excute   <see cref="ProductDemosWindow"/> loaded event
        /// </summary>
        /// <param name="param"></param>
        private void ProductWindowLoaded(object param)
        {
#if DEBUG
            if (CanAutomate)
            {
                try
                {
                    BindingErrorAutomation.UpdateSelectedSample();
                }
                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
        }