Example #1
0
        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();
                }
            }
        }
Example #2
0
 public void SaveData()
 {
     DataHandle.SaveProfiles(profiles, ID);
 }