Esempio n. 1
0
        /*********************************************************RADIO BUTTONS*/
        /*********************************************************RADIO BUTTONS*/
        /*********************************************************RADIO BUTTONS*/

        private void radioButtons_CheckedChanged(Object sender, EventArgs e)
        {
            // Check which radio button was selected and change the current layer accordingly.
            if (FLOOR_LAYER_RADIO.Checked)
            {
                map.SetCurrentLayer(Map.LAYER.FLOOR);
            }
            else if (WALL_LAYER_RADIO.Checked)
            {
                map.SetCurrentLayer(Map.LAYER.WALL);
            }
            else if (DECOR_LAYER_RADIO.Checked)
            {
                map.SetCurrentLayer(Map.LAYER.DECOR);
            }
        }