public override void Update(GraphicElement el, string label) { AssemblyBox box = (AssemblyBox)el; (label == "Filename").If(() => { box.Filename = Filename; box.Text = string.IsNullOrEmpty(Filename) ? "Assy" : ("Assy: " + Filename); }); base.Update(el, label); }
public AssemblyBoxProperties(AssemblyBox el) : base(el) { Filename = el.Filename; }