コード例 #1
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);
     }
 }
コード例 #2
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);
                }
            }
        }