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