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