Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="DataDirectoryName"></param>
        /// <param name="TempDirectoryName"></param>
        /// <param name="UnitDataFilename"></param>
        public WaterSim_CORiverModel(string DataDirectoryName, string TempDirectoryName, string UnitDataFilename)
        {
            // 09.14.20 das
            string COdata = "DataCOriver";

            try
            {
                FCORiverModel = new COriverModel(DataDirectoryName + COdata, TempDirectoryName);
                FCOA          = new COriverAccounting(DataDirectoryName, UnitDataFilename, FCORiverModel);
                FCOModels     = new COBasinModelManager();
                ResetModel();
            }
            catch (Exception ex)
            {
                FCORiverModel = null;
                FCOA          = null;
                MessageBox.Show(" WaterSim_CORiverModel constructor was not created" + ex);
            }
            // end 09.14.20 das
        }
Пример #2
0
        //

        // string UnitDataFilename = "West Regions USGS with Colorado Ver 5.csv";

        // NOTE! Though Owner:WaerSimModel is not defined here it is deined in ResourceModel and will be set when model is
        //       added to the ResourceModel list.

        ///-------------------------------------------------------------------------------------------------
        /// <summary> Initializes a new instance of the WaterSimDCDC.Generic.WaterSim_CORiverModel
        ///     class.</summary>
        ///
        ///-------------------------------------------------------------------------------------------------
        ///
        //==================================================================================================================================
        public WaterSim_CORiverModel(string DataDirectoryName, string TempDirectoryName, string UnitDataFilename, bool UTtransfers)
        {
            // 10.27.21 das
            //string COdata = "DataCOriver";
            try
            {
                //FCORiverModel = new COriverModel(DataDirectoryName + "\\" + COdata + "\\", TempDirectoryName);
                FCORiverModel = new COriverModel(DataDirectoryName, TempDirectoryName, UTwaterTransfers);

                FCOA      = new COriverAccounting(DataDirectoryName, UnitDataFilename, FCORiverModel);
                FCOModels = new COBasinModelManager();
                ResetModel();
            }
            catch (Exception ex)
            {
                FCORiverModel = null;
                FCOA          = null;
                MessageBox.Show(" WaterSim_CORiverModel constructor was not created" + ex);
            }
            // end 09.14.20 das
        }