Ejemplo n.º 1
0
        private void openFileBtn_Click(object sender, EventArgs e)
        {
            if (!FunctionlUtility.OpenProjectFile(this, Program.GetProjectFileFullPath()))
            {
                return;
            }
            //this.DialogResult = DialogResult.OK;
            //this.Close();
            RiverSimulationForm form = new RiverSimulationForm();

            if (DialogResult.OK != form.ShowDialog())
            {
                //this.Close();
            }
        }
Ejemplo n.º 2
0
        private void newFileBtn_Click(object sender, EventArgs e)
        {
            if (!FunctionlUtility.NewProjectFile(this, Program.GetProjectFullPath()))
            {
                return;
            }
            //RiverSimulationProfile.profile = new RiverSimulationProfile();
            //Program.projectFolder = Program.documentPath + "\\" + dlg.inputTxt.Text;
            //this.DialogResult = DialogResult.OK;
            //this.Close();

            RiverSimulationForm form = new RiverSimulationForm();

            if (DialogResult.OK != form.ShowDialog())
            {
                //this.Close();
            }
        }