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;
 }
示例#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);
            }
        }
示例#3
0
 public override void Copy(SmartElement prev)
 {
     base.Copy(prev);
     this.Target = ((SmartAction)prev).Target;
 }
 public override void Copy(SmartElement prev)
 {
     base.Copy(prev);
     this.Target = ((SmartAction)prev).Target;
 }
示例#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;
 }
示例#6
0
 public Warning(WarningType warning, string description, SmartElement element)
 {
     this.warning = warning;
     this.description = description;
     this.element = element;
 }
示例#7
0
 public Warning(WarningType warning, string description, SmartElement element)
 {
     this.warning     = warning;
     this.description = description;
     this.element     = element;
 }