protected override void Ok() { OperationCanceled = false; CanClose = true; if (Type != null) { if (AgentElement.Type == "Object") { AgentElement.ClassifierID = Type.ElementID; } else { AgentElement.PropertyType = Type.ElementID; } AgentElement.Name = Name; AgentElement.Notes = Notes; AgentElement.Update(); AgentElement.SetTaggedValueString("Type", Kind, false); } else { CanClose = false; } }
protected override void Ok() { OperationCanceled = false; CanClose = true; if (Type != null) { AgentElement.ClassifierID = Type.ElementID; AgentElement.Name = Name; AgentElement.Notes = Notes; AgentElement.Update(); } else { CanClose = false; } }