Example #1
0
        private static void DeleteOthers(AreaBorderModel model, SQLiteConnection connection)
        {
            if (model != null)
            {
                DBPoint3D.DeleteRow(connection, model.file.ID);
                DBMatrix3d.DeleteRow(connection, model.matrixTransform.ID);

                if (model.position != null)
                {
                    DBPoint3D.DeleteRow(connection, model.position.ID);
                }
                if (model.origin != null)
                {
                    DBPoint3D.DeleteRow(connection, model.origin.ID);
                }
                if (model.pointTop != null)
                {
                    DBPoint3D.DeleteRow(connection, model.pointTop.ID);
                }
                if (model.pointBottom != null)
                {
                    DBPoint3D.DeleteRow(connection, model.pointBottom.ID);
                }
                if (model.matrixTransform != null)
                {
                    DBMatrix3d.DeleteRow(connection, model.matrixTransform.ID);
                }
            }
        }
Example #2
0
        private static void DeleteOthers(FixtureUnitModel model, SQLiteConnection connection)
        {
            if (model != null)
            {
                DBPoint3D.DeleteRow(connection, model.file.ID);
                DBMatrix3d.DeleteRow(connection, model.matrixTransform.ID);

                if (model.matrixTransform != null)
                {
                    DBMatrix3d.DeleteRow(connection, model.matrixTransform.ID);
                }
                ;
                if (model.position != null)
                {
                    DBPoint3D.DeleteRow(connection, model.position.ID);
                }
                ;

                if (model.tagPos != null)
                {
                    DBPoint3D.DeleteRow(connection, model.tagPos.ID);
                }
                ;
                if (model.ventPos != null)
                {
                    DBPoint3D.DeleteRow(connection, model.ventPos.ID);
                }
                ;
                if (model.hotStub != null)
                {
                    DBPoint3D.DeleteRow(connection, model.hotStub.ID);
                }
                ;
                if (model.coldStub != null)
                {
                    DBPoint3D.DeleteRow(connection, model.coldStub.ID);
                }
                ;
                if (model.drainPos != null)
                {
                    DBPoint3D.DeleteRow(connection, model.drainPos.ID);
                }
                ;

                if (model.R1 != null)
                {
                    DBPoint3D.DeleteRow(connection, model.R1.ID);
                }
                if (model.V != null)
                {
                    DBPoint3D.DeleteRow(connection, model.V.ID);
                }
                if (model.M != null)
                {
                    DBPoint3D.DeleteRow(connection, model.M.ID);
                }
            }
        }
Example #3
0
 private static void DeleteOthers(TableModel model, SQLiteConnection connection)
 {
     if (model != null)
     {
         if (model.matrixTransform != null)
         {
             DBMatrix3d.DeleteRow(connection, model.matrixTransform.ID);
         }
         ;
         if (model.position != null)
         {
             DBPoint3D.DeleteRow(connection, model.position.ID);
         }
         ;
     }
 }