public Contacts(IM_Client IM) { InitializeComponent(); this.im = IM; this.Text = im.Username; this.ControlBox = false; }
public SingleDialogue(IM_Client IM, string sendTO, Contacts c) { InitializeComponent(); this.contacts = c; this.im = IM; this.sendTo = sendTO; }
private void OnIm_RegisterFailed(object sender, IMErrorEventArgs e) { this.BeginInvoke(new MethodInvoker(delegate { MessageBox.Show("Register Failed! Error Code {0}", e.Error.ToString()); usernameTextBox.Text = ""; passwordTextBox.Text = ""; this.status.Text = "Log In or Register"; im = new IM_Client(); })); }
public LogRegForm() { InitializeComponent(); this.im = new IM_Client(); im.LoginOK += OnIm_LoginOK; im.RegisterOK += OnIm_RegisterOK; im.LoginFailed += OnIm_LoginFailed; im.RegisterFailed += OnIm_RegisterFailed; }