private void InitListViewComponent() { //A header txtStatus.Text = "Upcomming appointments\r\n"; //Body Handlers.AppointmentHandler appHandler = new Outlook_1.Handlers.AppointmentHandler(); ArrayList alApps = (ArrayList)appHandler.getAllNewAppointments(); if (alApps.Count == 0) { txtStatus.Text = "None"; } else { int counter = 0; foreach (Business.AppointmentVO app in alApps) { txtStatus.Text += app._Subject + ":\r\n " + app._Start + "\r\n"; counter++; if (counter > 10) //Current max number displayed { break; } } } string sInfo = ((Business.AppointmentVO)appHandler.getCurrentAppointment())._Category; if (sInfo != null) { lblSetSocial.Text = sInfo; } else { lblSetSocial.Text = "N/A"; } }
private void InitListViewComponent() { //A header txtStatus.Text = "Upcomming appointments\r\n"; //Body Handlers.AppointmentHandler appHandler = new Outlook_1.Handlers.AppointmentHandler (); ArrayList alApps = (ArrayList)appHandler.getAllNewAppointments (); if (alApps.Count == 0) { txtStatus.Text = "None"; } else { int counter = 0; foreach (Business.AppointmentVO app in alApps) { txtStatus.Text += app._Subject + ":\r\n " + app._Start + "\r\n"; counter++; if (counter > 10) //Current max number displayed break; } } string sInfo = ((Business.AppointmentVO)appHandler.getCurrentAppointment ())._Category; if (sInfo != null) lblSetSocial.Text = sInfo; else lblSetSocial.Text = "N/A"; }