Exemplo n.º 1
0
 public virtual void Copy(SmartElement prev)
 {
     for (int i = 0; i < parameters.Length; ++i)
     {
         parameters[i].SetValue(prev.parameters[i].GetValue());
     }
     this.children = prev.children;
 }
Exemplo n.º 2
0
        private void this_warningSelected(object sender, EventArgs e)
        {
            if (!(e is WarningSelectedEventArgs))
            {
                return;
            }

            SmartElement elem = ((WarningSelectedEventArgs)e).element;

            if (elem is SmartAction || elem is SmartCondition)
            {
                elem.parent.setSelected(true);
                scratch.EnsureVisible(elem.parent);
            }
            else
            {
                elem.setSelected(true);
                scratch.EnsureVisible(elem);
            }
        }
Exemplo n.º 3
0
 public override void Copy(SmartElement prev)
 {
     base.Copy(prev);
     this.Target = ((SmartAction)prev).Target;
 }
Exemplo n.º 4
0
 public override void Copy(SmartElement prev)
 {
     base.Copy(prev);
     this.Target = ((SmartAction)prev).Target;
 }
Exemplo n.º 5
0
 public virtual void Copy(SmartElement prev)
 {
     for (int i = 0; i < parameters.Length; ++i)
         parameters[i].SetValue(prev.parameters[i].GetValue());
     this.children = prev.children;
 }
Exemplo n.º 6
0
 public Warning(WarningType warning, string description, SmartElement element)
 {
     this.warning = warning;
     this.description = description;
     this.element = element;
 }
Exemplo n.º 7
0
 public Warning(WarningType warning, string description, SmartElement element)
 {
     this.warning     = warning;
     this.description = description;
     this.element     = element;
 }