Exemplo n.º 1
0
        public override void Update(GraphicElement el, string label)
        {
            PythonFileBox box = (PythonFileBox)el;

            (label == "Filename").If(() =>
            {
                box.Filename = Filename;
                box.UpdateCodeBehind();
                box.Text = string.IsNullOrEmpty(Filename) ? "?.py" : (Path.GetFileName(Filename));
            });

            base.Update(el, label);
        }
Exemplo n.º 2
0
 public PythonFileBoxProperties(PythonFileBox el) : base(el)
 {
     Filename = el.Filename;
 }
Exemplo n.º 3
0
 public PythonFileBoxProperties(PythonFileBox el) : base(el)
 {
     Filename      = el.Filename;
     GenerateClass = el.GenerateClass;
 }