コード例 #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);
        }
コード例 #2
0
        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());
                }
            }
        }
コード例 #4
0
        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;
 }
コード例 #6
0
        public void LoadKml()
        {
            KmlDialog dialog = new KmlDialog();

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