private void joinChannelToolStripMenuItem_Click(object sender, EventArgs e) { Request l = new Request("Join: "); l.ShowDialog(); if (l.getCorrect()) { // notify server and create channel string[] s = l.getValue().Split(' '); //channel.createChannel(s[0]); try { socket.send("join " + s[0]); } catch (Exception m) { } } }
public void newNick() { Request request = new Request("Nick: "); //request.Parent = this; request.ShowDialog(); if (request.getValue().Trim() == "") { newNick(); } socket.send("nick " + request.getValue().Trim()); }