private void 另存为AToolStripMenuItem_Click(object sender, EventArgs e) { if (this.saveProjectDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string filename = this.saveProjectDlg.FileName; this.CurrentPartyProject.SaveAs(filename); this.CurrentPartyProject = PartyProject.Load(filename); MessageBox.Show("另存为成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void 打开OToolStripButton_Click(object sender, EventArgs e) { if (this.openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { this.CurrentPartyProject = PartyProject.Load(this.openFileDialog1.FileName); } catch (Exception ex) { MessageBox.Show(ex.Message, "错误"); } } }