protected override void OnClick()
        {
            if (AAState._PerformUpdates)
            {
                AAState._PerformUpdates = false;
                AAState.unInitEditing();
            }
            else
            {
                AAState._PerformUpdates = true;
                AAState.initEditing();
            }
            //if (m_Editor == null)
            //{

            //    return;
            //}
            //if (m_Editor.EditState == esriEditState.esriStateEditing)
            //{
            //    MessageBox.Show("Please stop editing before toggling the extension");
            //    return;
            //}

            //if (AAState.initTable() == false)
            //{
            //    MessageBox.Show("The required tables are missing\r\n" + "Dynamic Value Table: " + AAState._defaultsTableName + "\r\n" + "Generate ID Table: " + AAState._sequenceTableName);
            //    AAState._PerformUpdates = false;

            //    AAState.setIcon();

            //    return;
            //}
            ////Check orginal state
            //bool origState = AAState._PerformUpdates;

            ////Perform work
            //AAState._PerformUpdates = !origState;

            //AAState.setIcon();
            AAState.setIcon();
        }
 public AttributeAssistantToggleCommand()
 {
     m_Editor = Globals.getEditor(ArcMap.Application);
     AAState.setIcon();
 }