Exemple #1
0
 public void defaultInfo()
 {
     this.currentBrony = new Brony();
     this.u_Ava.Source = this.currentBrony.Avatar;
     this.u_About.Text = this.currentBrony.AboutBrony;
     this.u_Nick.Content = this.currentBrony.Name;
 }
Exemple #2
0
 public void changeInfo(Brony _brother)
 {
     this.currentBrony = _brother;
     this.u_Ava.Source = this.currentBrony.Avatar;
     this.u_About.Text = this.currentBrony.AboutBrony;
     this.u_Nick.Content = this.currentBrony.Name;
 }
Exemple #3
0
 public void changeInfo(string _name, pony_type _race, user_type _uType, bool _isOnline, string _About, BitmapImage _ava)
 {
     this.currentBrony = new Brony(_name, _About, _race, _uType, "", _isOnline, _ava);
     this.u_Ava.Source = this.currentBrony.Avatar;
     this.u_About.Text = this.currentBrony.AboutBrony;
     this.u_Nick.Content = this.currentBrony.Name; 
 }
Exemple #4
0
 private void P_list_ItemSelected(object sender, RoutedEventArgs e)
 {
     if (P_list.selectedPony != null)
     {
         string _currPonyName  = P_list.selectedPony;
         Brony  _currPonyAbout = Default_list[_currPonyName];
         UInform.changeInfo((Brony)_currPonyAbout);
     }
 }
Exemple #5
0
 public IActionResult CreateBrony(Brony newBrony)
 {
     _context.Bronies.Add(newBrony);
     _context.SaveChanges();
     return(Redirect($"/profile/{newBrony.UserId}"));
 }