Ejemplo n.º 1
0
        private void connectAsync()
        {
            Exception error = null;

            try
            {
                connect();
            }
            catch (Exception ex)
            {
                error = ex;
            }

            if (ITunesConnected != null)
            {
                if (this.iTunesApp != null)
                {
                    this.Version = this.iTunesApp.Version;
                }
                ITunesConnectedEventArgs arg = new ITunesConnectedEventArgs(error);
                ITunesConnected(this, arg);
            }
        }
Ejemplo n.º 2
0
        private void connectAsync()
        {
            Exception error = null;
            try
            {
                connect();
            }
            catch (Exception ex)
            {
                error = ex;
            }

            if (ITunesConnected != null)
            {                
                if (this.iTunesApp != null) this.Version = this.iTunesApp.Version;
                ITunesConnectedEventArgs arg = new ITunesConnectedEventArgs(error);
                ITunesConnected(this, arg);
            }
        }