Exemple #1
0
        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);
        }
Exemple #2
0
        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();
        }