Exemple #1
0
 public GroupUI(Group group, FrmMain mainForm)
 {
     this.group           = group;
     this.panelINTERACTED = mainForm.PnInteract;
     this.panelRIGHT      = mainForm.PnRight;
     this.mainForm        = mainForm;
     ucGroupAll           = new ucGroupAll(group, this);
     InitGroupForm();
     InitCmns();
     ucGroupInteract = new ucInterac(this.group.Name);
     ucGroupInteract.SetGroup(this);
     ucGroupInteract.InitColor();
     ucGroupInteract.SetAvatar(group.AvatarPath);
     ucGroupToAdd = new ucGroupToAdd(group);
     //ucGroupToAdd = new ucGroupToAdd(group);
 }
 public UserUI(User user, FrmMain mainForm)
 {
     this.user            = user;
     this.mainForm        = mainForm;
     this.panelINTERACTED = mainForm.PnInteract;
     this.panelRIGHT      = mainForm.PnRight;
     InitUserForm();
     InitCmns();
     this.panelRIGHT.Controls.Add(userForm);
     userForm.InitColor();
     ucUserAll    = new ucUserAll(this);
     ucUserOnline = new ucUserOnline(this);
     ucInterac    = new ucInterac(user.Name, user.Status);
     ucInterac.SetUser(this);
     ucInterac.InitColor();
     ucInterac.SetAvatar(user.AvatarPath);
     ucFriend       = new ucFriend(this);
     ucFriendOnline = new ucFriend(this);
     ucSearch       = new ucUserAll(this);
     ucADD          = new ucADD(user);
 }