/// <summary> /// The main entry point for the application. /// </summary> /// <remarks></remarks> public void Main() { using (PortalViewer frm = this) { if (!frm.InitializeGraphics()) { // Initialize Direct3D MessageBox.Show("Could not initialize Direct3D. This tutorial will exit."); return; } frm.Show(); // While the form is still valid, render and process messages while (frm.Created) { frm.Render(); Application.DoEvents(); } } }
/// <summary> /// The portal viewer tool strip menu item_ click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> /// <remarks></remarks> private void portalViewerToolStripMenuItem_Click(object sender, EventArgs e) { PortalViewer pv = new PortalViewer(ref map.SelectedMeta); }