private void Button_Click_1(object sender, RoutedEventArgs e) { if (IdText.Text != "") { int n; bool isNumeric = int.TryParse(IdText.Text, out n); if (isNumeric) { IntPanel.Visibility = Visibility.Hidden; ID = n; profiles = DataHandle.LoadProfiles(ID); ChangeProfile(0); GenerateProfileButtons(profiles); Update(); } } }
public void SaveData() { DataHandle.SaveProfiles(profiles, ID); }