public DialogOptions(DialogOptions defaults)
        {
            if (defaults == null)
            {
                return;
            }

            width            = defaults.width;
            height           = defaults.height;
            padding          = defaults.padding;
            titleFontSize    = defaults.titleFontSize;
            headingFontSize  = defaults.headingFontSize;
            textFontSize     = defaults.textFontSize;
            formBuilder      = defaults.formBuilder;
            environmentFlags = new HashSet <string>(defaults.environmentFlags);
        }
Exemple #2
0
 public static IModelHost Dialog(object dialogIdentifier, object context, DialogOptions options)
 {
     return(new DialogModelHost(dialogIdentifier, context, options));
 }
Exemple #3
0
 public static IModelHost Dialog(object dialogIdentifier, DialogOptions options)
 {
     return(new DialogModelHost(dialogIdentifier, null, options));
 }
Exemple #4
0
 public static IModelHost Dialog(DialogOptions options)
 {
     return(new DialogModelHost(null, null, options));
 }
Exemple #5
0
 public DialogModelHost(object dialogIdentifier, object context, DialogOptions options)
 {
     this.context          = context;
     this.options          = options;
     this.dialogIdentifier = dialogIdentifier;
 }