Exemple #1
0
        public MapServerDialog RenderServerImage()
        {
            MapServerDialog dialog = new MapServerDialog();

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                RenderServerImage(dialog.ServerName, dialog.VisibleLayers);
                return(dialog);
            }
            return(null);
        }
Exemple #2
0
        public void AddServerImage()
        {
            MapServerDialog retval = provider.RenderServerImage();

            if (retval != null)
            {
                lblServerName.Content = retval.ServerName;
                serverName            = retval.ServerName;
                visibleLayers         = retval.VisibleLayers;
                if (MapGenerated != null)
                {
                    MapGenerated(this, new EventArgs());
                }
            }
        }
 public MapServerDialog RenderServerImage()
 {
     MapServerDialog dialog = new MapServerDialog();
     if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         RenderServerImage(dialog.ServerName, dialog.VisibleLayers);
         return dialog;
     }
     return null;
 }