public string GetString(ResourceNames.ConsentForm resourceName)
        {
            string resource = string.Empty;

            switch (resourceName)
            {
            case ResourceNames.ConsentForm.Title:
                resource = Properties.Resources.UsageReportPromptDialogTitle;
                break;

            case ResourceNames.ConsentForm.AgreementOne:
                resource = Properties.Resources.UsageReportPromptDialogMessagePart1;
                break;

            case ResourceNames.ConsentForm.AgreementTwo:
                resource = Properties.Resources.UsageReportPromptDialogMessagePart2;
                break;

            case ResourceNames.ConsentForm.NodeUsage:
                resource = Properties.Resources.UsageReportPromptDialogNodeUsage;
                break;

            case ResourceNames.ConsentForm.FeatureUsage:
                resource = Properties.Resources.UsageReportPromptDialogFeatureUsage;
                break;

            case ResourceNames.ConsentForm.Consent:
                resource = Properties.Resources.UsageReportPromptDialogConsent;
                break;
            }
            return(EnsureStringLoaded(resource, resourceName.ToString()));
        }
        public string GetString(ResourceNames.ConsentForm resourceName)
        {
            string resource = string.Empty;

            switch (resourceName)
            {
            case ResourceNames.ConsentForm.Title:
                resource = string.Format(Properties.Resources.UsageReportPromptDialogTitle, ProductName);
                break;
            }

            return(EnsureStringLoaded(resource, resourceName.ToString()));
        }
        public ImageSource GetImageSource(ResourceNames.ConsentForm resourceName)
        {
            ImageSource image = null;

            switch (resourceName)
            {
            case ResourceNames.ConsentForm.Image:
                image = new BitmapImage(
                    new Uri(@"pack://application:,,,/DynamoCoreWpf;component/UI/Images/consent_form_image.png",
                            UriKind.Absolute));
                break;
            }
            return(EnsureImageLoaded(image, resourceName.ToString()));
        }