Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            SyncZone syncZone = (SyncZone)comboBox5.SelectedIndex;

            IList <ModesLayer> listLayers_ = null;

            if (api_ != null)
            {
                listLayers_ = api_.GetLayersBySyncZone(syncZone);

                outputBox.Items.Clear();
                foreach (ModesLayer lay in listLayers_)
                {
                    outputBox.Items.Add(String.Format("Имя слоя данных: {0} \r\n", lay.Name));
                }
            }

            dataGridView1.Visible = false;
            outputBox.Visible     = true;
        }