public GridProject(GridConfig grid, PrinterConfig printer)
 {
     this.Grid    = grid;
     this.Printer = printer;
     Tasks        = new PetriTask[grid.Columns, grid.Rows];
 }
 protected GridProject(SerializationInfo info, StreamingContext context)
 {
     Tasks    = (PetriTask[, ])info.GetValue("Tasks", typeof(PetriTask[, ]));
     _grid    = (GridConfig)info.GetValue("Grid", typeof(GridConfig));
     _printer = (PrinterConfig)info.GetValue("Printer", typeof(PrinterConfig));
 }
Beispiel #3
0
        public static void SaveDefaultGridConfig(GridConfig config)
        {
            var path = Path.Combine(DefaultFolder(), "gridconfig.bin");

            Save(path, config);
        }