private void addFunctionClick(object sender, System.EventArgs e) { SourceForm sourceForm = new SourceForm(graph, null, this); sourceForm.Reset(); sourceForm.Show(); }
private void EditClick(object sender, System.EventArgs e) { if (((EditMenuItem)sender).item is FunctionItem) { SourceForm sourceForm = new SourceForm(graph, (FunctionItem)((EditMenuItem)sender).item, this); sourceForm.Reset(); sourceForm.Show(); } else if (((EditMenuItem)sender).item is DataItem) { DataForm dataForm = new DataForm(graph, (DataItem)((EditMenuItem)sender).item, this); dataForm.Reset(); dataForm.Show(); } }