1
Vote

Improvement to view an appointment

description

Hello, my proposal is to improve an appointment so that the time range can always be displayed (sory for my english).
 
Office12Renderer - DrawAppointment
Replace line:
g.DrawString(appointment.Title, this.BaseFont, SystemBrushes.WindowText, rect, format);
 
for:
string title = String.Format("{0:t} a {1:t} \n\n {2}", appointment.StartDate, appointment.EndDate, appointment.Title);
g.DrawString(title, this.BaseFont, SystemBrushes.WindowText, rect, format);
 
 
Office11Renderer:
replace
g.DrawString(appointment.Title, this.BaseFont, SystemBrushes.WindowText, rect, format);
 
for:
string titulo = String.Format("{0:t} a {1:t} \n\n {2}", appointment.StartDate, appointment.EndDate, appointment.Title);
g.DrawString(titulo, this.BaseFont, SystemBrushes.WindowText, rect, format);
 
 
Thanks
 
Federico A. Colli

comments