Example #1
0
        public void Load(string fileName)
        {
            _fileName = fileName;
            XmlSerializer serializer = new XmlSerializer(typeof(Domain));

            // A FileStream is needed to read the XML document.
            // Declare an object variable of the type to be deserialized.
            Domain domain;

            /* Use the Deserialize method to restore the object's state with
             * data from the XML document. */
            using (FileStream fs = new FileStream(fileName, FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)) {
                domain = (Domain)serializer.Deserialize(fs);
            }

            this._stateList    = domain.StateList;
            this._countyList   = domain.CountyList;
            this._townshipList = domain.TownshipList;
            this._rangeList    = domain.RangeList;

            GetSectionList();
            GetQuadrantList();
            GetQuarterQuadrantList();
            GetFieldPriorCropList();
            GetFieldRotationLengthList();
            GetBeetYearList();
            GetIrrigationSystemList();
            GetWaterSourceList();

            GetDiseaseSeverityList();
            GetTillageTypeList();
            GetLandOwnershipList();
        }
Example #2
0
 public Domain()
 {
     _stateList = new TItemList();
     _countyList = new TItem2List();
     _townshipList = new TItem2List();
     _rangeList = new TItem2List();
     _sectionList = new TItemList();
     _quadrantList = new TItemList();
     _quarterQuadrantList = new TItemList();
     _fieldRotationLengthList = new TItemList();
     _fieldPriorCropList = new TItemList();
     _fieldBeetYearsList = new TItemList();
     _fieldIrrigationSystemList = new TItemList();
     _fieldWaterSourceList = new TItemList();
     _diseaseSeverityList = new TItemList();
     _tillageTypeList = new TItemList();
     _landOwnershipList = new TItemList();
 }
Example #3
0
 public Domain()
 {
     _stateList                 = new TItemList();
     _countyList                = new TItem2List();
     _townshipList              = new TItem2List();
     _rangeList                 = new TItem2List();
     _sectionList               = new TItemList();
     _quadrantList              = new TItemList();
     _quarterQuadrantList       = new TItemList();
     _fieldRotationLengthList   = new TItemList();
     _fieldPriorCropList        = new TItemList();
     _fieldBeetYearsList        = new TItemList();
     _fieldIrrigationSystemList = new TItemList();
     _fieldWaterSourceList      = new TItemList();
     _diseaseSeverityList       = new TItemList();
     _tillageTypeList           = new TItemList();
     _landOwnershipList         = new TItemList();
 }
Example #4
0
 public RptAgronomy()
 {
     _varietyList           = new TItem2List();
     _factoryVarietyList    = new TItem2List();
     _seedTreatmentList     = new TItemList();
     _laybyHerbicideList    = new TItemList();
     _bandWidthList         = new TItemList();
     _sampleDepthList       = new TItemList();
     _samplePList           = new TItemList();
     _plantSpacingList      = new TItemList();
     _soilTextureList       = new TItemList();
     _soilTestList          = new TItemList();
     _rowSpacingList        = new TItemList();
     _seedList              = new TItemList();
     _weedControlMethodList = new TItemList();
     _cercosporaChemList    = new TItemList();
     _hailStressList        = new TItemList();
     _weedControlList       = new TItemList();
     _replantReasonList     = new TItemList();
     _lostReasonList        = new TItemList();
     _herbicideRxCountList  = new TItemList();
 }
Example #5
0
 public RptAgronomy()
 {
     _varietyList = new TItem2List();
     _factoryVarietyList = new TItem2List();
     _seedTreatmentList = new TItemList();
     _laybyHerbicideList = new TItemList();
     _bandWidthList = new TItemList();
     _sampleDepthList = new TItemList();
     _samplePList = new TItemList();
     _plantSpacingList = new TItemList();
     _soilTextureList = new TItemList();
     _soilTestList = new TItemList();
     _rowSpacingList = new TItemList();
     _seedList = new TItemList();
     _weedControlMethodList = new TItemList();
     _cercosporaChemList = new TItemList();
     _hailStressList = new TItemList();
     _weedControlList = new TItemList();
     _replantReasonList = new TItemList();
     _lostReasonList = new TItemList();
     _herbicideRxCountList = new TItemList();
 }
Example #6
0
        public void Load(string fileName)
        {
            _fileName = fileName;
            XmlSerializer serializer = new XmlSerializer(typeof(Domain));

            // A FileStream is needed to read the XML document.
            // Declare an object variable of the type to be deserialized.
            Domain domain;

            /* Use the Deserialize method to restore the object's state with
            data from the XML document. */
            using (FileStream fs = new FileStream(fileName, FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)) {
                domain = (Domain)serializer.Deserialize(fs);
            }

            this._stateList = domain.StateList;
            this._countyList = domain.CountyList;
            this._townshipList = domain.TownshipList;
            this._rangeList = domain.RangeList;

            GetSectionList();
            GetQuadrantList();
            GetQuarterQuadrantList();
            GetFieldPriorCropList();
            GetFieldRotationLengthList();
            GetBeetYearList();
            GetIrrigationSystemList();
            GetWaterSourceList();

            GetDiseaseSeverityList();
            GetTillageTypeList();
            GetLandOwnershipList();
        }