Esempio n. 1
0
 public void RemoveVariable(VVariable v)
 {
     if (v.VariableRefs.Count == 0)
     {
         vvariables.Remove(v);
         Controls.Remove(v);
         UpdateSize();
     }
 }
Esempio n. 2
0
        public void AddVariable(string v)
        {
            var label = new VVariable(v, this);

            vvariables.Add(label);

            Controls.Add(label);
            UpdateSize();
        }
Esempio n. 3
0
 public void RemoveArgument(VVariable arg)
 {
     if (arg.VariableRefs.Count == 0)
     {
         varguments.Remove(arg);
         Controls.Remove(arg);
         UpdateSize();
     }
 }
Esempio n. 4
0
        public void AddArgument(string arg)
        {
            var label = new VVariable(arg, this);

            varguments.Add(label);

            Controls.Add(label);
            UpdateSize();
        }
Esempio n. 5
0
 public void SetInitVariable(VVariable variable)
 {
     this.variable      = variable;
     BackColor          = Color.PapayaWhip;
     nameLabel          = new CustomLabel(varName, Color.Azure);
     nameLabel.Parent   = this;
     nameLabel.Location = new Point(5, 5);
     markInitVarName    = null;
     UpdateName();
 }
Esempio n. 6
0
 public VVariableRef(VVariable variable)
 {
     SetInitVariable(variable);
 }