Exemple #1
0
        public void QueryGroupUsers()
        {
            UserInfo[] users = UserInfoManager.GetUserArray();
            foreach (UserInfo usr in users)
            {
                if (m_user_list.Items.Contains(usr))
                {
                    continue;
                }

                if (usr.IsAlive)
                {
                    OutgoingPackagePool.AddFirst(NetPackageGenerater.FindGroupUser(m_group.Key, usr.RemoteIP));
                }
            }
        }
Exemple #2
0
        public static void ExitForm()
        {
            s_singleton.Invoke(new DoAction(delegate
            {
                GroupConfig.Save();

                Timer quitTimer    = new Timer();
                quitTimer.Interval = 500;
                quitTimer.Tick    += new EventHandler(quitTimer_Tick);
                quitTimer.Start();

                UserInfo[] users = UserInfoManager.GetUserArray();
                foreach (UserInfo user in users)
                {
                    OutgoingPackagePool.AddFirst(NetPackageGenerater.UserOffline(user.RemoteIP));
                }
            }));
        }