Beispiel #1
0
 private void Afterdraw(IDisplay display, esriViewDrawPhase drawPhase)
 {
     if (drawPhase == esriViewDrawPhase.esriViewForeground)
     {
         if (CycloMediaGroupLayer != null)
         {
             FrmCycloMediaOptions.OpenIfNoCredentials();
             FrmGlobespotter.CheckVisible();
         }
     }
 }
Beispiel #2
0
 protected override void OnClick()
 {
     try
     {
         OnUpdate();
         FrmCycloMediaOptions.OpenCloseSwitch();
     }
     catch (Exception ex)
     {
         _logClient.Error("GsCycloMediaOptions.OnClick", ex.Message, ex);
         MessageBox.Show(ex.Message, Resources.GsCycloMediaOptions_OnClick_Globespotter_integration_Addin_Error_);
     }
 }
Beispiel #3
0
        public void Uninitialize()
        {
            RemoveLayers();
            var docEvents = ArcUtils.MxDocumentEvents;

            if (docEvents != null)
            {
                docEvents.OpenDocument  -= OpenDocument;
                docEvents.CloseDocument -= CloseDocument;
            }

            FrmCycloMediaOptions.CloseForm();
        }
Beispiel #4
0
 public void RemoveLayers()
 {
     if (CycloMediaGroupLayer != null)
     {
         GsShowInCyclorama.RemoveFromMenu();
         FrmCycloMediaOptions.CloseForm();
         FrmMeasurement.Close();
         FrmIdentify.Close();
         CycloMediaGroupLayer cycloLayer = CycloMediaGroupLayer;
         CycloMediaGroupLayer = null;
         cycloLayer.Dispose();
         FrmGlobespotter.ShutDown(true);
     }
 }
Beispiel #5
0
        public void AddLayers(string name)
        {
            if (Enabled)
            {
                if (CycloMediaGroupLayer == null)
                {
                    GsShowInCyclorama.AddToMenu();
                    FrmCycloMediaOptions.CheckOpenCredentials();
                    CycloMediaGroupLayer = new CycloMediaGroupLayer();
                }

                if (!string.IsNullOrEmpty(name))
                {
                    CycloMediaGroupLayer.AddLayer(name);
                }
            }
        }