예제 #1
0
        /// <summary>
        /// View the legend for the selected layer.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void viewLegendToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayerBuilder oBuilder = m_oCurrServerLayers[c_lvLayers.SelectedIndices[0]];

            string[] aLegends = oBuilder.GetLegendURLs();
            foreach (string szLegend in aLegends)
            {
                if (!String.IsNullOrEmpty(szLegend))
                {
                    MainForm.BrowseTo(szLegend);
                }
            }
        }