public override void LoadValue(Descriptor val) { base.LoadValue(val); if (! (val is TextActivationArgument)) { throw new ArgumentException("Wrong argument type of " + val.GetType().FullName + "when expected TextActivationArgument", "val"); } this.valueTextBox.Text = (val as TextActivationArgument).Value; }
public virtual void LoadValue(Descriptor val) { nameTextBox.Text = val.Name; descriptionRichTextBox.Text = val.Description; }