Inheritance: NativeInstance
コード例 #1
0
ファイル: EditorView.cs プロジェクト: LauriM/PropellerEngine
        public EditorView(EditorInstance e, MainViewBase r)
        {
            InitializeComponent();
            editor = e;
            rootView = r;

            mouseLocked = false;
        }
コード例 #2
0
        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.";
        }