Esempio n. 1
0
        protected void DeleteDb(Pipe pipe)
        {
            if (pipe == null)
            {
                return;
            }
            DeleteCmd dcmd    = new DeleteCmd();
            PipeRev   piperev = new PipeRev();

            piperev.ListPipe = new List <DBCtrl.DBClass.CPipeInfo>();
            piperev.ListPipe.Add(pipe.pipeInfo);
            dcmd.SetReceiver(piperev);
            dcmd.Execute();
        }
Esempio n. 2
0
        protected void DelDB(Cover c)
        {
            if (c == null)
            {
                return;
            }
            CJuncInfo info = c.juncInfo;

            DeleteCmd cmd = new DeleteCmd();
            JuncRev   rev = new JuncRev();

            rev.ListJunc = new List <CJuncInfo>();
            rev.ListJunc.Add(info);

            cmd.SetReceiver(rev);
            cmd.Execute();
        }