예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }