Example #1
0
        internal ActiveSync()
        {
            try
            {
                // call CoCreateInstance
                dccMan  = new DccMan();
                dccSink = new DccManSink();

                // wire all the events
                dccSink.Active     += new ActiveHandler(dccSink_Active);
                dccSink.Answer     += new AnswerHandler(dccSink_Answer);
                dccSink.Disconnect += new DisconnectHandler(dccSink_Disconnect);
                dccSink.Error      += new ErrorHandler(dccSink_Error);
                dccSink.Inactive   += new InactiveHandler(dccSink_Inactive);
                dccSink.IPChange   += new IPAddrHandler(dccSink_IPChange);
                dccSink.Listen     += new ListenHandler(dccSink_Listen);
                dccSink.Terminated += new TerminatedHandler(dccSink_Terminated);

                // QI both
                idccMan  = (IDccMan)dccMan;
                idccSink = (IDccManSink)dccSink;
            }
            catch (Exception)
            {
                throw new RAPIException("Unable to create ActiveSync object.  Make sure ActiveSync is installed");
            }
        }
Example #2
0
        internal ActiveSync()
        {
            try
            {
                // call CoCreateInstance
                dccMan = new DccMan();
                dccSink = new DccManSink();

                // wire all the events
                dccSink.Active += new ActiveHandler(dccSink_Active);
                dccSink.Answer += new AnswerHandler(dccSink_Answer);
                dccSink.Disconnect += new DisconnectHandler(dccSink_Disconnect);
                dccSink.Error += new ErrorHandler(dccSink_Error);
                dccSink.Inactive += new InactiveHandler(dccSink_Inactive);
                dccSink.IPChange += new IPAddrHandler(dccSink_IPChange);
                dccSink.Listen += new ListenHandler(dccSink_Listen);
                dccSink.Terminated += new TerminatedHandler(dccSink_Terminated);

                // QI both
                idccMan = (IDccMan)dccMan;
                idccSink = (IDccManSink)dccSink;
            }
            catch(Exception)
            {
                throw new RAPIException("Unable to create ActiveSync object.  Make sure ActiveSync is installed");
            }
        }