Пример #1
0
        public void Update(int Id, string Name, int BaudRate, int DataBits, int StopBits, int Parity, int Dtr, int Rts,
                           string Description)
        {
            var item = new LRS232();

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

            item.Id = Id;

            item.Name = Name;

            item.BaudRate = BaudRate;

            item.DataBits = DataBits;

            item.StopBits = StopBits;

            item.Parity = Parity;

            item.Dtr = Dtr;

            item.Rts = Rts;

            item.Description = Description;

            item.Save(UserName);
        }
Пример #2
0
        public void Insert(string Name, int BaudRate, int DataBits, int StopBits, int Parity, int Dtr, int Rts,
                           string Description)
        {
            var item = new LRS232();

            item.Name = Name;

            item.BaudRate = BaudRate;

            item.DataBits = DataBits;

            item.StopBits = StopBits;

            item.Parity = Parity;

            item.Dtr = Dtr;

            item.Rts = Rts;

            item.Description = Description;


            item.Save(UserName);
        }
Пример #3
0
 public bool Destroy(object Id)
 {
     return(LRS232.Destroy(Id) == 1);
 }
Пример #4
0
 public bool Delete(object Id)
 {
     return(LRS232.Delete(Id) == 1);
 }