Ejemplo n.º 1
0
 public ConfigToken(ConfigToken toCopy)
 {
     this.surface  = toCopy.surface;
     this.brush    = toCopy.brush;
     this.width    = toCopy.width;
     this.strength = toCopy.strength;
     this.jitter   = toCopy.jitter;
     this.quality  = toCopy.quality;
 }
Ejemplo n.º 2
0
        protected override void InitDialogFromToken(EffectConfigToken effectTokenCopy)
        {
            ConfigToken token = effectTokenCopy as ConfigToken;

            brushcombobox.SelectedItem = token.brush;
            this.Pressure  = token.strength;
            this.Jitter    = token.jitter;
            this.BrushSize = token.width;
            this.Quality   = token.quality;

            base.InitDialogFromToken(effectTokenCopy);
        }
Ejemplo n.º 3
0
        protected override void InitTokenFromDialog()
        {
            if (!this.IsDisposed)
            {
                ConfigToken token = EffectToken as ConfigToken;

                token.width    = this.BrushSize;
                token.strength = this.Pressure;
                token.jitter   = this.Jitter;
                token.quality  = this.Quality;
                token.surface  = surface;

                if (this.brushcombobox.SelectedItem != null)
                {
                    token.brush = (PngBrush)this.brushcombobox.SelectedItem;
                }

                base.InitTokenFromDialog();
            }
        }
Ejemplo n.º 4
0
 protected override void InitialInitToken()
 {
     theEffectToken = new ConfigToken();
 }