private void ContentWorkspaceContentOpened(object sender, ContentPresenterEventArgs e) { TabPage page = new TabPage(e.Content.Name) { Tag = e.Content.Uid }; tabControlEx1.TabPages.Add(page); LevelPanel lpanel = new LevelPanel(); lpanel.BindController(e.Content as LevelPresenter); lpanel.Dock = DockStyle.Fill; page.Controls.Add(lpanel); }
private void ContentWorkspaceReset(object sender, EventArgs e) { tabControlEx1.TabPages.Clear(); foreach (LevelPresenter lp in _editor.ContentWorkspace.OpenContents) { TabPage page = new TabPage(lp.Level.Name) { Tag = lp.Level.Uid }; tabControlEx1.TabPages.Add(page); LevelPanel lpanel = new LevelPanel(); lpanel.BindController(lp); lpanel.Dock = DockStyle.Fill; page.Controls.Add(lpanel); } }
private void ContentWorkspaceReset(object sender, EventArgs e) { tabControlEx1.TabPages.Clear(); foreach (LevelPresenter lp in _editor.ContentWorkspace.OpenContents) { TabPage page = new TabPage(lp.Level.Name) { Tag = lp.Level.Uid }; tabControlEx1.TabPages.Add(page); LevelPanel lpanel = new LevelPanel(); lpanel.BindController(lp); lpanel.Dock = DockStyle.Fill; page.Controls.Add(lpanel); } }
private void ContentWorkspaceContentOpened(object sender, ContentPresenterEventArgs e) { TabPage page = new TabPage(e.Content.Name) { Tag = e.Content.Uid }; tabControlEx1.TabPages.Add(page); LevelPanel lpanel = new LevelPanel(); lpanel.BindController(e.Content as LevelPresenter); lpanel.Dock = DockStyle.Fill; page.Controls.Add(lpanel); }