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(); }
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(); }