Example #1
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; 
 }
Example #2
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;
 }
Example #3
0
 public MyFriend(string _name, string _about, pony_type _ptype, user_type _utype, bool _isActive, BitmapImage _avatar)
 {
     this.Name        = _name;
     this.AboutBrony  = _about;
     this.pType       = _ptype;
     this.uType       = _utype;
     this.status      = "";
     this.isActive    = _isActive;
     this.statusColor = define_color(this.pType, this.isActive);
     this.Avatar      = _avatar;
 }
Example #4
0
 protected string define_color(pony_type _t, bool isA)
 {
     if (isActive)
     {
         return(online[_t]);
     }
     else
     {
         return(offline[_t]);
     }
 }
Example #5
0
 public Brony(string _name, pony_type _ptype, bool _isActive)
 {
     this.Name        = _name;
     this.AboutBrony  = "";
     this.pType       = _ptype;
     this.uType       = user_type.player;
     this.status      = "";
     this.isActive    = _isActive;
     this.statusColor = define_color(this.pType, this.isActive);
     this.Avatar      = new BitmapImage(new Uri("/CMC4EP;component/Media/derp.jpg", UriKind.Relative));
 }
Example #6
0
 public Brony(string _name, string _about, pony_type _ptype, user_type _utype, string _status, bool _isActive, string _URL_avatar)
 {
     this.Name        = _name;
     this.AboutBrony  = _about;
     this.pType       = _ptype;
     this.uType       = _utype;
     this.status      = _status;
     this.isActive    = _isActive;
     this.statusColor = define_color(this.pType, this.isActive);
     this.Avatar      = new BitmapImage(new Uri(_URL_avatar, UriKind.Relative));
 }