private void newMnuItem_Click(object sender, EventArgs e) { FunctionlUtility.SaveProject(RiverSimulationProfile.profile); if (!FunctionlUtility.NewProjectFile(this, Program.GetProjectFullPath())) { return; } UpdateStatus(); }
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(); }