private void GetInfobutton_Click(object sender, RoutedEventArgs e) { var SelectSlot = personaSlot.Items[personaSlot.SelectedIndex] as ComboBoxItem; int slotnum = Convert.ToInt32(SelectSlot.Content); personaName.Content = Offsets.GetPersona(slotnum); lvl.Content = Offsets.GetLevel(slotnum); stSlider.Value = Offsets.GetStat(slotnum, "St"); maSlider.Value = Offsets.GetStat(slotnum, "Ma"); enSlider.Value = Offsets.GetStat(slotnum, "En"); agSlider.Value = Offsets.GetStat(slotnum, "Ag"); luSlider.Value = Offsets.GetStat(slotnum, "Lu"); skill1.Content = Offsets.GetSkill(slotnum, 1); skill2.Content = Offsets.GetSkill(slotnum, 2); skill3.Content = Offsets.GetSkill(slotnum, 3); skill4.Content = Offsets.GetSkill(slotnum, 4); skill5.Content = Offsets.GetSkill(slotnum, 5); skill6.Content = Offsets.GetSkill(slotnum, 6); skill7.Content = Offsets.GetSkill(slotnum, 7); skill8.Content = Offsets.GetSkill(slotnum, 8); }