Ejemplo n.º 1
0
        public FrmUser(UserManager.User user, UserUI userUI)
        {
            InitializeComponent();

            this.pictureBox1.Image = Image.FromFile(FrmMain.theme.PicturePlus);
            //this.pictureBoxMenu.Image = Image.FromFile(FrmMain.theme.PictureMenu);
            this.pictureVoice.Image = Image.FromFile(FrmMain.theme.pictureVoice);
            panelLine.BackColor     = FrmMain.theme.LineColor;
            this.userUI             = userUI;
            this.Visible            = false;
            this.user       = user;
            this.id         = 0;
            LastInteracted  = 0;
            BoxChats        = new List <Panel>();
            files           = new List <FileInfo>();
            userINChatBoxes = new List <ucUserINChatBox>();
            InitUserForm();
            voicePanel = new ucVoicePanel(user, this);
            this.Controls.Add(voicePanel);
            this.SizeChanged        += UserForm_SizeChanged;
            this.panel2.SizeChanged += UserForm_SizeChanged;
            addpnInfo();
            ucInfoUser._LoadInfoUser(user, listfileShows);
            InitColor();
        }
Ejemplo n.º 2
0
        public FrmGroup(Group group, GroupUI grUI)
        {
            InitializeComponent();

            this.Visible        = false;
            this.group          = group;
            this.ID             = 0;
            this.GroupUI        = grUI;
            this.labelName.Text = group.Name;
            this.labelID.Text   = group.ID;
            LastInteracted      = 0;
            BoxChats            = new List <Panel>();
            files           = new List <FileInfo>();
            voicePanel      = new ucVoicePanel(group, this);
            userINChatBoxes = new List <ucUserINChatBox>();
            this.Controls.Add(voicePanel);
            this.SizeChanged        += GroupForm_SizeChanged;
            this.panel2.SizeChanged += GroupForm_SizeChanged;
            InitGroupForm();
            addpnInfo();
            this.ucInfoGroup._LoadInfoGroup(group, listfileShows);
            InitColor();
        }