//add object to project
 public void SaveObject(DDTObject obj)
 {
     this.project.objects.Add(obj);
 }
        /* Shape to Object, shouldn't be necessary
        public static  DDT.DDTObject DDTShapeToObject(Netron.NetronLight.IDDTObject objShape)
        {

        }
        */
        public static DDT.DDTObject CanvasToDDTObject(Netron.NetronLight.IDDTObject obj)
        {
            DDTObject temp;
             if (obj.GetType().Equals(typeof(Netron.NetronLight.CustomizedObject)))
             {
                 temp= new DDTObject(DDT_Obj_Type.CUSTOMIZED, obj.Text);
             }
             else if (obj.GetType().Equals(typeof(Netron.NetronLight.DataStoreObject)))
             {
                 temp = new DDTObject(DDT_Obj_Type.DATASTORE, obj.Text);
             }
             else if (obj.GetType().Equals(typeof(Netron.NetronLight.DataSinkObject)))
             {
                 temp = new DDTObject(DDT_Obj_Type.DATASINK, obj.Text);
             }
             else if (obj.GetType().Equals(typeof(Netron.NetronLight.Terminator)))
             {
                 temp = new DDTObject(DDT_Obj_Type.TERMINATOR, obj.Text);
             }
             else if (obj.GetType().Equals(typeof(Netron.NetronLight.ADTObject)))
             {
                 temp = new DDTObject(DDT_Obj_Type.ADT, obj.Text);
             }
             else if (obj.GetType().Equals(typeof(Netron.NetronLight.CObject)))
             {
                 temp = new DDTObject(DDT_Obj_Type.COBJECT, obj.Text);
             }
             else if (obj.GetType().Equals(typeof(Netron.NetronLight.SMObject)))
             {
                 temp = new DDTObject(DDT_Obj_Type.SMOBJECT, obj.Text);
             }
             else
             {
                 MessageBox.Show("Invalid Object Type!!", "WARNING");
                 return null;
             }
             temp.ID = obj.ID;
             return temp;
        }