Esempio n. 1
0
 public Contacts(IM_Client IM)
 {
     InitializeComponent();
     this.im         = IM;
     this.Text       = im.Username;
     this.ControlBox = false;
 }
Esempio n. 2
0
        public SingleDialogue(IM_Client IM, string sendTO, Contacts c)
        {
            InitializeComponent();

            this.contacts = c;
            this.im       = IM;
            this.sendTo   = sendTO;
        }
Esempio n. 3
0
 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();
     }));
 }
Esempio n. 4
0
        public LogRegForm()
        {
            InitializeComponent();

            this.im = new IM_Client();

            im.LoginOK        += OnIm_LoginOK;
            im.RegisterOK     += OnIm_RegisterOK;
            im.LoginFailed    += OnIm_LoginFailed;
            im.RegisterFailed += OnIm_RegisterFailed;
        }