Пример #1
0
        public DefaultLayers()
        {
            if (Instance == null)
            {
                Instance = this;
            }

            InitializeComponent();
            WindowStartupLocation = WindowStartupLocation.CenterScreen;

            foreach (var item in Global.Preferences.Read("DefaultLayers").Split(new string[] { "|" }, StringSplitOptions.None))
            {
                Layers.Items.Add(item);
            }

            Layers.SelectedIndex = 0;

            UpdateChanges();
        }
Пример #2
0
        private void Preferences_DefaultLayers(object sender, RoutedEventArgs e)
        {
            DefaultLayers dl = new DefaultLayers();

            dl.ShowDialog();
        }