public override void Update(GraphicElement el, string label) { HtmlFileBox box = (HtmlFileBox)el; (label == "Filename").If(() => { box.Filename = Filename; box.UpdateCodeBehind(); box.Text = string.IsNullOrEmpty(Filename) ? "?.html" : (Path.GetFileName(Filename)); }); base.Update(el, label); }
public HtmlFileBoxProperties(HtmlFileBox el) : base(el) { Filename = el.Filename; }