public LayerBrushType(WizardImplementation wizard, Dictionary <string, string> replacementsDictionary, object[] customParams, PluginInfo pluginInfo)
 {
     _wizard = wizard;
     _replacementsDictionary = replacementsDictionary;
     _customParams           = customParams;
     _pluginInfo             = pluginInfo;
     _layerBrushInfo         = new LayerBrushInfo();
 }
Example #2
0
        internal LayerBrushInfoDialog(LayerBrushInfo layerBrushInfo)
        {
            _layerBrushInfo = layerBrushInfo;
            InitializeComponent();

            NameTextBox.Text        = _layerBrushInfo.Name;
            IconTextBox.Text        = _layerBrushInfo.Icon;
            DescriptionTextBox.Text = _layerBrushInfo.Description;

            if (_layerBrushInfo.RenderType == "Regular")
            {
                RenderTypeRegular.IsChecked = true;
            }
            else if (_layerBrushInfo.RenderType == "PerLed")
            {
                RenderTypePerLed.IsChecked = true;
            }

            IncludeDialogCheckBox.IsChecked = _layerBrushInfo.IncludeCustomDialog;
        }