public void AddNewPage(String fileName) { var svgForm = new WorkspaceHolder { Dock = DockStyle.Fill, Name = fileName }; svgForm.svgDrawForm.ToolDone += OnToolDoneComplete; svgForm.svgDrawForm.ItemsSelected += SvgDrawFormItemsSelected; tabbedView.Add(svgForm); }
public void OpenDocument(String fileName) { var svgForm = new WorkspaceHolder { Dock = DockStyle.Fill, Name = fileName }; svgForm.svgDrawForm.ToolDone += OnToolDoneComplete; svgForm.svgDrawForm.ItemsSelected += SvgDrawFormItemsSelected; svgForm.svgDrawForm.OpenFile(fileName); tabbedView.Add(svgForm); svgForm.Refresh(); }