Ejemplo n.º 1
0
        /// <summary>
        /// Click handler event on the context menu
        /// </summary>
        public override void OnClick()
        {
            MyEventHandler myEventHandler = new MyEventHandler();
            myEventHandler.getSetITOCControl2 = getSetITOCControl2;

            myEventHandler.showAttributeForm();

            //MW.ManipulateData.MyTOCClass myTOCClass;

            //myTOCClass = new MW.ManipulateData.MyTOCClass(getSetITOCControl2);

            //MW.ManipulateData.AttributeTable attributeTable = new ManipulateData.AttributeTable(myTOCClass.getSelectedLayerInTOC());
            //attributeTable.ShowDialog();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Show the attribute window
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mnuAttributeTable_Click(object sender, EventArgs e)
        {
            try
            {
                MyEventHandler myEventHandler = new MyEventHandler();
                myEventHandler.getSetITOCControl2 = getSetTocControl;

                myEventHandler.showAttributeForm();
            }
            catch (COMException COMex)
            {
                MessageBox.Show("Error " + COMex.ErrorCode.ToString() + ": " + COMex.Message);

            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: " + ex.Message);

            }
        }