Domanda

Ho appena iniziato a costruire un'applicazione utilizzando la versione “XihSolutions.DotMSN.dll”: 2.0.0.40909,

Il mio problema è che non è sparare l'evento “Nameserver_SignedIn”. Non sono sicuro se sto facendo qualcosa di sbagliato. il vostro aiuto sarà molto utile.

vuoto Nameserver_SignedIn (object sender, EventArgs e)         {             throw new Exception ( "Firmato In Utente");         }

    private string message = string.Empty;
    void NameserverProcessor_ConnectionEstablished(object sender, EventArgs e)
    {

        message = "Connected";
        SetMessage();

    }

    void SetMessage()
    {
        if (tbMessage.InvokeRequired)
           tbMessage. Invoke(new ThreadStart(SetMessage));
        else
        tbMessage.Text += Environment.NewLine+ message; 
    }

    private void btnSingIn_Click(object sender, EventArgs e)
    {
        if (messenger.Connected)
        {
           // SetStatus("Disconnecting from server");
            messenger.Disconnect();
        }

        // set the credentials, this is ofcourse something every DotMSN program will need to
        // implement.
        messenger.Credentials.Account = tbUserName.Text;
        messenger.Credentials.Password = tbPwd.Text;

        // inform the user what is happening and try to connecto to the messenger network.                
        //SetStatus("Connecting to server");
        messenger.Connect();

    }
È stato utile?

Soluzione

Si potrebbe utilizzare MSNPSharp invece - DotMSN è vecchio e non possono supportare il protocollo MSN corrente. C'è collegamento è qui:

http://code.google.com/p/msnp-sharp/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top