コード例 #1
0
        private void btn_login_Click_1(object sender, EventArgs e)
        {
            Client current = Log();

            if (current != null)
            {
                try
                {
                    Chat_status chat = new Chat_status(current);
                    chat.Show();
                    status_info.Text = "All right.";
                }

                catch (SocketException)
                {
                    status_info.Text = "Server is not running.";
                }
            }
        }
コード例 #2
0
 public NewChannel(NetworkStream nws, Chat_status cw)
 {
     InitializeComponent();
     this.streamSender = nws;
     this.c            = cw;
 }