private void button1_Click(object sender, EventArgs e) { if (textBox1.Text != "") { textBox1.Text = textBox1.Text.Trim(); con.sender(Utill.SET + user.getToken() + textBox1.Text); con.sender(Utill.GET + user.getToken()); textBox1.Clear(); } }
public static string toString(User user) { return(new StringBuilder() .Append(user.getToken()) .Append("|") .Append(user.getNickname()) .Append("|") .Append(user.getPassword()) .ToString()); }
public Form3(User user) { InitializeComponent(); this.user = user; textBox1.Focus(); button1.Enabled = false; label1.Text = user.getNickname(); con = Program.connector; con.sender(Utill.GET + user.getToken()); }