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(); }
private void Preferences_DefaultLayers(object sender, RoutedEventArgs e) { DefaultLayers dl = new DefaultLayers(); dl.ShowDialog(); }