Inheritance: System.Windows.Forms.Form
        protected override void OnClick()
        {
            theForm = new SecondaryViewerForm();
            //register form's events
            theForm.topDownButton.Click += new EventHandler(topDownButton_Click);
            theForm.normalButton.Click  += new EventHandler(normalButton_Click);
            theForm.FormClosing         += new FormClosingEventHandler(theForm_FormClosing);
            //get viewer list
            getListOfSecondaryViewers();
            //register the ArcGlobe globe's display afterdraw event
            globeDispEvent.AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(globeDispEvent_AfterDraw);

            theForm.Show();
        }
コード例 #2
0
        protected override void OnClick()
        {
            theForm = new SecondaryViewerForm();
            //register form's events
            theForm.topDownButton.Click += new EventHandler(topDownButton_Click);
            theForm.normalButton.Click += new EventHandler(normalButton_Click);
            theForm.FormClosing += new FormClosingEventHandler(theForm_FormClosing);
            //get viewer list
            getListOfSecondaryViewers();
            //register the ArcGlobe globe's display afterdraw event
            globeDispEvent.AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(globeDispEvent_AfterDraw);

            theForm.Show();
        }