public OpenNewMapDocument(ControlsSynchronizer controlsSynchronizer)
        {
            base.m_category = ".NET Samples";
            base.m_caption  = "Open Map Document";
            base.m_message  = "Open Map Document";
            base.m_toolTip  = "Open Map Document";
            base.m_name     = "DotNetSamplesOpenMapDocument";

            pControlsSynchronizer = controlsSynchronizer;

            try
            {
                string bitmapResourceName = GetType().Name + ".bmp";
                base.m_bitmap = new Bitmap(GetType(), bitmapResourceName);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap");
            }
        }
        public OpenNewMapDocument(ControlsSynchronizer controlsSynchronizer)
        {
            base.m_category = ".NET Samples";
              base.m_caption = "Open Map Document";
              base.m_message = "Open Map Document";
              base.m_toolTip = "Open Map Document";
              base.m_name = "DotNetSamplesOpenMapDocument";

              pControlsSynchronizer = controlsSynchronizer;

              try
              {
            string bitmapResourceName = GetType().Name + ".bmp";
            base.m_bitmap = new Bitmap(GetType(), bitmapResourceName);
              }
              catch (Exception ex)
              {
            System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap");
              }
        }
        private void MainForm_Load(object sender, EventArgs e)
        {
            pMapControlsSynchronizer = new ControlsSynchronizer((IMapControl3)axMapControl1.Object, (IPageLayoutControl2)axPageLayoutControl1.Object);

            pMapControlsSynchronizer.BindControls(true);

            //
            pMapControlsSynchronizer.AddFrameworkControl(axToolbarControl1.Object);

            pMapControlsSynchronizer.AddFrameworkControl(axTOCControl1.Object);
        }