示例#1
0
        private void 更改公告ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormInputAndAction fiaa = new FormInputAndAction(str => UserClient.Net_simplify_client.ReadFromServer(
                                                                 CommonHeadCode.SimplifyHeadCode.更新公告 + str).IsSuccess, UserClient.Announcement);

            fiaa.ShowDialog();
            fiaa.Dispose();
        }
示例#2
0
        private void 消息发送ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //测试发送字节数据
            //net_socket_server.SendAllClients(BitConverter.GetBytes(12345678));
            //将消息群发给所有的客户端,并使用消息弹窗的方式显示
            FormInputAndAction fiaa = new FormInputAndAction(m =>
            {
                net_socket_server.SendAllClients(CommonHeadCode.MultiNetHeadCode.弹窗消息 + m); return(true);
            });

            fiaa.ShowDialog();
            fiaa.Dispose();
        }