Пример #1
0
Файл: Class1.cs Проект: wpmyj/c3
        public override void OnUpdate(IStation station)
        {
            Station st = (Station)station;
            //st.Name;
            string xml = CommuniPortConfigSerializer.Serialize(st.CommuniPortConfig);
            int    id  = (int)GuidHelper.ConvertToUInt32(st.Guid);

            DBI.Instance.UpdateStation(id, st.Name, xml, st.Ordinal, st.Street, st.Remark);
        }
Пример #2
0
        public void t()
        {
            UInt32 //min = 0,
                max = UInt32.MaxValue;

            max = 1;

            Guid id = GuidHelper.Create(max);

            //Console.WriteLine();
            Assert.AreEqual(GuidHelper.ConvertToUInt32(id), max);
        }