コード例 #1
0
        public void ExportSensors
        (
            int roomIndex,
            string filePath
        )
        {
            IExcelExport export = new DataManipulator();
            DataTable    var    = new DataTable();

            var.Columns.Add("1");
            var.Columns.Add("2");
            var.Columns.Add("3");
            var.Columns.Add("4");
            foreach (var sensor in User.Rooms[roomIndex].ListSensors)
            {
                var.Rows.Add
                (
                    sensor.Name,
                    sensor.Fam,
                    sensor.State,
                    sensor.Data
                );
            }
            export.ExportFile(filePath, User.Rooms[roomIndex].Name, var);
        }