private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
private void ResetPagesButton(object sender, RoutedEventArgs e) { Properties.Settings.Default.defRunePageIDs = default; Properties.Settings.Default.defItemSetIDs = default; ComboBoxItem defaultRunePage = (ComboBoxItem)RuneMenu.FindName("DefaultRunePage"); defaultRunePage.Tag = default; ComboBoxItem defaultItemPage = (ComboBoxItem)ItemMenu.FindName("DefaultItemPage"); defaultItemPage.Tag = default; }