Example #1
0
        private void tsbBack_Click(object sender, EventArgs e)
        {
            WaterYield wy = new WaterYield();

            wy.WindowState = FormWindowState.Maximized;     //窗体最大化
            wy.Show();
            this.Close();
        }
Example #2
0
        /// <summary>
        /// 水量管理页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsbWaterYield_Click(object sender, EventArgs e)
        {
            WaterYield waterYield = new WaterYield();

            waterYield.WindowState = FormWindowState.Maximized;     //窗体最大化
            waterYield.Show();
            this.Hide();
        }
Example #3
0
        /// <summary>
        /// 保存编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSave_Click(object sender, EventArgs e)
        {
            EditResFile res = new EditResFile();

            if (this.txtRESDAYO.Text == "")
            {
                MessageBox.Show("请选择相应的文件!");
            }
            else
            {
                res.EditRes(str, txtIYRES, txtRES_ESA, txtRES_EVOL, txtRES_PSA, txtRES_PVOL, txtRES_VOL, txtRES_SED, txtRES_NSED, txtRES_D50, txtRES_K, txtRES_RR, txtNDTARGR, txtWURTNF, txtOFLOWMN_FPS, txtSTARG_FPS, cmbIRESCO, cmbIFLOD1R, cmbIFLOD2R);
                EditResMonFile mon = new EditResMonFile();
                mon.creatMonFile(str, this.txtRESDAYO.Text);
                MessageBox.Show("保存编辑完成!");
                WaterYield wy = new WaterYield();
                wy.InitTreeViewInput();
                wy.InitTreeViewOutput();
            }
        }