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; }
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); }
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(); } }
protected override void InitialInitToken() { theEffectToken = new ConfigToken(); }