Beispiel #1
0
 public void ResetTheme()
 {
     this.userForm.BackColor = FrmMain.theme.BackColor;
     this.userForm.InitColor();
     InitCmns();
     ucUserAll.InitColor();
     ucUserOnline.InitColor();
     ucFriend.InitColor();
     ucADD.InitControls();
     ucInterac.InitColor();
     if (ucPending != null)
     {
         ucPending.InitColor();
     }
 }
Beispiel #2
0
 public void ResetTheme()
 {
     this.groupForm.BackColor = FrmMain.theme.BackColor;
     this.groupForm.InitColor();
     InitCmns();
     ucGroupAll.InitControls();
     ucGroupInteract.InitColor();
     if (ucGroupPending != null)
     {
         ucGroupPending.InitColor();
     }
     if (ucGroupToAdd != null)
     {
         ucGroupToAdd.InitColor();
     }
 }
Beispiel #3
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);
 }
Beispiel #4
0
 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);
 }