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; }
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; }
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; }
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); } }
public IActionResult CreateBrony(Brony newBrony) { _context.Bronies.Add(newBrony); _context.SaveChanges(); return(Redirect($"/profile/{newBrony.UserId}")); }