private void openFileBtn_Click(object sender, EventArgs e) { if (!FunctionlUtility.OpenProjectFile(this, Program.GetProjectFileFullPath())) { return; } this.DialogResult = DialogResult.OK; this.Close(); }
private void openMnuItem_Click(object sender, EventArgs e) { FunctionlUtility.SaveProject(RiverSimulationProfile.profile); if (!FunctionlUtility.OpenProjectFile(this, Program.GetProjectFileFullPath())) { return; } UpdateStatus(); }
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(); } }