예제 #1
0
        private void UsersForGroupChat_Load(object sender, EventArgs e)
        {
            flowLayoutPanel1.Controls.Clear();
            List <string> strnamer = new List <string>();

            Server.Service1 server    = new Server.Service1();
            string[]        strnamer1 = strnamer.ToArray();
            server.getUsersContacts(EnterUser.EnterUserForm.email, ref strnamer1);
            foreach (string s in strnamer1)
            {
                if (s != "")
                {
                    GroupUsers n = new GroupUsers(s);
                    flowLayoutPanel1.Controls.Add(n);
                }
            }
        }
예제 #2
0
        private void EnterUser_Load(object sender, EventArgs e)
        {
            EnterUser.EnterUserForm = this;
            flowLayoutPanel1.Controls.Clear();
            List <string> strnamer = new List <string>();

            Server.Service1 server    = new Server.Service1();
            string[]        strnamer1 = strnamer.ToArray();

            server.getUsersContacts(EnterUser.EnterUserForm.email, ref strnamer1);

            foreach (string s in strnamer1)
            {
                UserControl4 uc = new UserControl4(s);
                flowLayoutPanel1.Controls.Add(uc);
            }
        }