Beispiel #1
0
        private void CloseMap(xMap Map)//
        {
            int idx = tcMaps.SelectedIndex;

            if (idx + 2 < tcMaps.TabCount)
            {
                idx++;
            }
            else
            {
                idx += (0 < idx) ? -1 : 1;
            }
            tcMaps.SelectTab(idx);
            // Remove
            Map.Clear();
            Options.Maps.Remove(Map);
            tcMaps.TabPages.Remove(Map.Tab);
        }