private void Save_Click(object sender, EventArgs e) { GFunctionNode node = new GFunctionNode(); node.name = save_file_name.Text; node.nDim = nDim; node.points = lstPoints; GFunctionFile.SaveGFunction(node); Close(); }
private void LoadfuncMenuItem_Click(object sender, EventArgs e) { //加载g函数 GFunctionFile.LoadGFunction(nDim, out gLoadNodes); contextMenuLoadgf.Items.Clear(); foreach (GFunctionNode node in gLoadNodes) { ToolStripMenuItem item = new ToolStripMenuItem { Tag = gLoadNodes.IndexOf(node), Text = node.name }; contextMenuLoadgf.Items.Add(item); } contextMenuLoadgf.Show(Cursor.Position); }