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); }
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); }
public bool Destroy(object PortId) { return(LPort.Destroy(PortId) == 1); }
public bool Delete(object PortId) { return(LPort.Delete(PortId) == 1); }