private void EnsureButton_Click(object sender, RoutedEventArgs e)
 {
     UserAccount.getAccount(account);
     UserAccount.getPassword(password);
     DataUnit.SaveData("5", AccountBox.Text);
     DataUnit.SaveData("6", PasswordBox.Text);
     DataUnit.IsSignUp = true;
     DataUnit.SaveData("7", DateTime.Now.Year);
     DataUnit.SaveData("8", DateTime.Now.Month);
     DataUnit.SaveData("9", DateTime.Now.Day);
     Frame.Navigate(typeof(UserWelcome), UserAccount);
 }
Esempio n. 2
0
 public void ChangeTag(string ChoosedTag)
 {
     for (int i = 0; i < 5 && TagList[i] != null; i++)
     {
         if (TagList[i].Content.ToString() == ChoosedTag)
         {
             NewTag = false;
             break;
         }
     }
     if (NewTag)
     {
         for (int i = 4; i != 0; i--)
         {
             TagList[i].Content = TagList[i - 1].Content;
         }
         TagList[0].Content = ChoosedTag;
     }
     for (int i = 0; i < 5 && ChoosedTag != null; i++)
     {
         DataUnit.SaveData(i.ToString(), TagList[i].Content.ToString());
     }
 }