Example #1
0
        public StructureTypeObj(StructureTypeObj parent)
        {
            this.Data = new StructureType();
            this.Data.DBAction = DBACTION.INSERT;
            this.Data.Name = "New Structure Type";
            this.Data.MarkupType = "Point";
            this.Data.ID = StructureTypeStore.GetTempID();
            this.Data.Tags = new String[0];
            this.Data.StructureTags = new String[0];

            if (parent != null)
            {
                this.Data.ParentID = parent.ID;
            }

            StructureTypeStore.AddType(this);
        }
Example #2
0
 private void RemoveChild(StructureTypeObj child)
 {
     _Children.Remove(child);
     //            SetDBActionForChange(); Don't do this, the database doesn't care if the child changes, tables only carry a parent field
     if (OnChildChanged != null)
         OnChildChanged(this, new ChildChangeEventArgs(child, CHANGEACTION.REMOVE));
 }
Example #3
0
 protected void ContextMenu_OnNewStructureType(object sender, EventArgs e)
 {
     StructureTypeObj newType = new StructureTypeObj(this);
     Viking.UI.Forms.PropertySheetForm.Show(newType);
 }