public void setSensor(OceanLoadingProperties.GreenFunctionEntry GreensFunction,
                              OceanLoadingProperties.OceanModelEntry[] OceanModel,
                              OceanLoadingProperties.LocalOceanModelEntry[] LocalOceanModel, string pathProperties)
        {
            this.GreensFunction = GreensFunction;
            if (OceanModel != null)
            {
                this._OceanModel = new List <OceanLoadingProperties.OceanModelEntry>(OceanModel);
            }
            else
            {
                this._OceanModel = null;
            }
            if (LocalOceanModel != null)
            {
                this._LocalOceanModel = new List <OceanLoadingProperties.LocalOceanModelEntry>(LocalOceanModel);
            }
            else
            {
                this._LocalOceanModel = null;
            }

            oclp = OceanLoadingProperties.deserialisieren(pathProperties);

            setFormsEarthModel();

            setFormsOceanModel();

            setFormsLocalOceanModel();

            readyForContinue();
        }
Esempio n. 2
0
        public static void serialisieren(OceanLoadingProperties oceanloadingproperties, string path)
        {
            XmlSerializer s = new XmlSerializer(typeof(OceanLoadingProperties));
            TextWriter    w = new StreamWriter(path);

            s.Serialize(w, oceanloadingproperties);
            w.Close();
        } // Serialization
Esempio n. 3
0
        public PropertiesOceanLoading(OceanLoadingProperties oclP,
                                      string oclEarthModel,
                                      string oclTideModel)
        {
            this.oclP          = oclP;
            this.oclEarthModel = oclEarthModel;
            this.oclTideModel  = oclTideModel;

            InitializeComponent();

            int tmp = 0;
            int c   = 0;

            foreach (OceanLoadingProperties.OceanModelEntry tmname in oclP.OceanModelItems)
            {
                comboBoxOceanLoad.Items.Add(tmname.ModelName);
                if (tmname.FilePath == oclTideModel)
                {
                    tmp = c;
                }
                c++;
            }
            comboBoxOceanLoad.SelectedIndex = tmp;
            tmp = 0;
            c   = 0;

            foreach (OceanLoadingProperties.GreenFunctionEntry gfname in oclP.GreenFunctionItems)
            {
                comboBoxGreenFuntion.Items.Add(gfname.Description);
                if (gfname.FileName == oclEarthModel)
                {
                    tmp = c;
                }
                c++;
            }
            comboBoxGreenFuntion.SelectedIndex = tmp;
        }