private ChartModel OpenChartAddForm() { var addForm = new ChartEditForm(); addForm.ShowDialog(); return(addForm.ChartModel); }
private ChartModel OpenChartAddForm(Func <string, ChartModel> func) { var addForm = new ChartEditForm(func); addForm.ShowDialog(); return(addForm.ChartModel); }
private void OpenChartEditForm() { var editForm = new ChartEditForm(tree.SelectedNode as ChartModel); editForm.ShowDialog(); }