Ejemplo n.º 1
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     Handlers.AppointmentHandler appHandler = new
     Handlers.AppointmentHandler ();
     Business.AppointmentVO appVO =
     (Business.AppointmentVO)appHandler.getCurrentAppointment ();
     new Handlers.GenerationHandler ().generateEvent (null, appVO);
     ArrayList al = new ArrayList ();
     al.Contains ("work");
 }
Ejemplo n.º 2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            Handlers.AppointmentHandler appHandler = new
                                                     Handlers.AppointmentHandler();
            Business.AppointmentVO appVO =
                (Business.AppointmentVO)appHandler.getCurrentAppointment();
            new Handlers.GenerationHandler().generateEvent(null, appVO);
            ArrayList al = new ArrayList();

            al.Contains("work");
        }
Ejemplo n.º 3
0
 public void testsub()
 {
     Business.ZoneVO zoneVO_ = new Outlook_1.Business.ZoneVO(1,
                                                             1);
     Handlers.AppointmentHandler appHandler = new
                                              Handlers.AppointmentHandler();
     Business.AppointmentVO appVO =
         (Business.AppointmentVO)appHandler.getCurrentAppointment();
     new Handlers.GenerationHandler().generateEvent(zoneVO_,
                                                    appVO);
 }
Ejemplo n.º 4
0
 public void testsub()
 {
     Business.ZoneVO zoneVO_ = new Outlook_1.Business.ZoneVO (1,
     1);
     Handlers.AppointmentHandler appHandler = new
     Handlers.AppointmentHandler ();
     Business.AppointmentVO appVO =
     (Business.AppointmentVO)appHandler.getCurrentAppointment ();
     new Handlers.GenerationHandler ().generateEvent (zoneVO_,
     appVO);
 }
Ejemplo n.º 5
0
        void sms_MessageReceived(object sender,
                                 MessageeInterceptorEventArgs e)
        {
            Handlers.AppointmentHandler appHandler = new
                                                     Handlers.AppointmentHandler();
            Business.AppointmentVO appVO =
                (Business.AppointmentVO)appHandler.getCurrentAppointment();
            if (appVO._Id == null)
            {
                //no current app
            }
            else
            {
                notification = new Microsoft.WindowsCE.Forms.Notification();

                Microsoft.WindowsMobile.PocketOutlook.SmsMessage msg =

                    (Microsoft.WindowsMobile.PocketOutlook.SmsMessage)e.Message;
                msg.Read = true;
                StringBuilder stb = new StringBuilder();
                stb.Append(msg.Body + "<br>");
                stb.Append(msg.Received.ToString() + "<br>");
                stb.Append(msg.From + "<br>");
                notification.BalloonChanged += new
                                               BalloonChangedEventHandler(notification_BalloonChanged);
                notification.Text            = stb.ToString();
                notification.InitialDuration = 10;
                if (appVO._Sensitivity.ToLower().Trim() == "private")
                {
                    notification.Caption = "BlockedSmSMessage";
                    notificationStatus   = true;
                }
                else
                {
                    notification.Caption = "IncommingSMSMessage";
                    notification.Visible = true;
                }
            }
        }
Ejemplo n.º 6
0
        void sms_MessageReceived(object sender, 
MessageeInterceptorEventArgs e)
        {
            Handlers.AppointmentHandler appHandler = new
            Handlers.AppointmentHandler ();
            Business.AppointmentVO appVO =
            (Business.AppointmentVO)appHandler.getCurrentAppointment ();
            if (appVO._Id == null) {
                //no current app
            } else {
                notification = new Microsoft.WindowsCE.Forms.Notification ();

                Microsoft.WindowsMobile.PocketOutlook.SmsMessage msg =

            (Microsoft.WindowsMobile.PocketOutlook.SmsMessage)e.Message;
                msg.Read = true;
                StringBuilder stb = new StringBuilder ();
                stb.Append (msg.Body + "<br>");
                stb.Append (msg.Received.ToString () + "<br>");
                stb.Append (msg.From + "<br>");
                notification.BalloonChanged += new
            BalloonChangedEventHandler (notification_BalloonChanged);
                notification.Text = stb.ToString ();
                notification.InitialDuration = 10;
                if (appVO._Sensitivity.ToLower ().Trim () == "private") {
                    notification.Caption = "BlockedSmSMessage";
                    notificationStatus = true;
                } else {
                    notification.Caption = "IncommingSMSMessage";
                    notification.Visible = true;
                }
            }
        }