示例#1
0
        public void Insert(string PortName, string BaudRate, int DataBits, string StopBits, string Parity, short?Status, string Description, int Dtr, int Rts, string LocalAlias)
        {
            LPort item = new LPort();

            item.PortName = PortName;

            item.BaudRate = BaudRate;

            item.DataBits = DataBits;

            item.StopBits = StopBits;

            item.Parity = Parity;

            item.Status = Status;

            item.Description = Description;

            item.Dtr = Dtr;

            item.Rts = Rts;

            item.LocalAlias = LocalAlias;


            item.Save(UserName);
        }
示例#2
0
        public void Update(int PortId, string PortName, string BaudRate, int DataBits, string StopBits, string Parity, short?Status, string Description, int Dtr, int Rts, string LocalAlias)
        {
            LPort item = new LPort();

            item.MarkOld();
            item.IsLoaded = true;

            item.PortId = PortId;

            item.PortName = PortName;

            item.BaudRate = BaudRate;

            item.DataBits = DataBits;

            item.StopBits = StopBits;

            item.Parity = Parity;

            item.Status = Status;

            item.Description = Description;

            item.Dtr = Dtr;

            item.Rts = Rts;

            item.LocalAlias = LocalAlias;

            item.Save(UserName);
        }
示例#3
0
 public bool Destroy(object PortId)
 {
     return(LPort.Destroy(PortId) == 1);
 }
示例#4
0
 public bool Delete(object PortId)
 {
     return(LPort.Delete(PortId) == 1);
 }