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(); } }
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(); } }