public EditorView(EditorInstance e, MainViewBase r) { InitializeComponent(); editor = e; rootView = r; mouseLocked = false; }
private void createNewEditor() { EditorInstance nativeEditor = new EditorInstance(this); EditorView instanceView = new EditorView(nativeEditor, this); instanceView.Show(dockPanel, DockState.Document); instanceView.PanelPane.AllowDockDragAndDrop = false; IntPtr handle; unsafe { handle = (IntPtr)instanceView.instanceViewPanel.Handle.ToPointer(); } EditorTab tab = new EditorTab(instanceView, nativeEditor, handle); editorList.Add(tab); //add to list to manage the tabs toolStripStatus.Text = editorList.Count + " instances running."; }