public PickLvlFE AddLvlType(LvlItem item) { var lvlItem = new LvlButtonFE(item); Children.Add(lvlItem); lvlItem.Click += OnLevelSelected; return(this); }
private void OnLevelSelected(object sender, RoutedEventArgs e) { LvlButtonFE button = sender as LvlButtonFE; GeneralWindow.Get.WindowSetting = button.LvlItem.WindowSetting; }