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