Exemplo n.º 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);
        }
Exemplo n.º 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);
        }