예제 #1
0
        public void SerializeTest()
        {
            Configuration Cf = new Configuration();

              Cf.BottomHeader = "BOTTOM";
              Cf.TopHeader = "TOP";
              Cf.XHeader = "XUTM";
              Cf.YHeader = "YUTM";
              Cf.IdHeader = "XUTM";
              Cf.SheFile = Path.GetFullPath(@"..\..\..\TestData\TestModel.she");
              Cf.MaxDepthHeader = "BOTTOM";
              Cf.MaxRateHeader = "XUTM";

              Cf.WellShapeFile = Path.GetFullPath(@"..\..\..\TestData\commandareas.shp");
              Cf.DeleteWellsAfterRun = false;

              XmlSerializer x = new XmlSerializer(Cf.GetType());
              System.IO.FileStream file =new System.IO.FileStream(@"..\..\..\TestData\IrrigationConfiguration.xml", System.IO.FileMode.Create);

              x.Serialize(file, Cf);
              file.Dispose();
        }
예제 #2
0
 public Controller(Configuration Config)
 {
     _config = Config;
       _she = new Model(_config.SheFile);
 }