示例#1
0
 public static TrialModalDialog CreateInstance()
 {
     if (_DialogInstance == null)
     {
         _DialogInstance = new TrialModalDialog();
     }
     return(_DialogInstance);
 }
示例#2
0
        private void statesControl_Loaded(object sender, RoutedEventArgs e)
        {
            this.ContentItem = DataContext as IContentItem;
            var           formatString = this.ContentItem.Properties["LSSignatureControls:SignaturePad/ImageFormat"] as string;
            ImageEncoding enc;

            if (Enum.TryParse(formatString, true, out enc))
            {
                ((ImageConverter)Resources["imageConverter"]).ImageType = enc;
            }

            SetSignaturePadSizes();
#if TRIAL
            var trialDialog = TrialModalDialog.CreateInstance();
            trialDialog.Show();
#endif
        }