示例#1
0
        public KmlDialog RenderServerImage()
        {
            KmlDialog dialog = new KmlDialog();

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                RenderServerImage(dialog.ServerName, dialog.VisibleLayers);
                return(dialog);
            }
            return(null);
        }
        sealed override public object[] Load()
        {
            KmlDialog dialog = new KmlDialog();

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return(Load(dialog.ServerName));
            }

            return(null);
        }
示例#3
0
        public void AddServerImage()
        {
            KmlDialog retval = provider.RenderServerImage();

            if (retval != null)
            {
                lblServerName.Content = retval.ServerName;
                serverName            = retval.ServerName;
                visibleLayers         = retval.VisibleLayers;
                if (MapGenerated != null)
                {
                    MapGenerated(this, new EventArgs());
                }
            }
        }
        public object[] LoadKml()
        {
            KmlDialog dialog = new KmlDialog();

            object[] kmlfile = null;
            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                kmlfile = LoadKml(dialog.ServerName);
                return(kmlfile);
            }
            else
            {
                return(null);
            }
        }
示例#5
0
 public KmlDialog RenderServerImage()
 {
     KmlDialog dialog = new KmlDialog();
     if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         RenderServerImage(dialog.ServerName, dialog.VisibleLayers);
         return dialog;
     }
     return null;
 }
        public void LoadKml()
        {
            KmlDialog dialog = new KmlDialog();

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadKml(dialog.ServerName);
            }
        }