示例#1
0
        private static void SetDescription(DataTable table)
        {
            // Read IP Address
            string ip = DeviceConfiguration.GetTableValue(table, "/Agent/Address");

            if (!string.IsNullOrEmpty(ip))
            {
                DeviceConfiguration.EditTable(table, "/Description/Description", ip, null);
            }
            else
            {
                DeviceConfiguration.EditTable(table, "/Description/Description", string.Empty, null);
            }
        }