Cantos Redondos com css / Rounded Corners with css
Read More... Rounded courners CSS
border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;
Tips and help for windows, Mac Os, and developing programs ( like MIPS , visual studio , iphone ). Have tips for c#, c, cshell, perl, java, assembly
border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;
/* Firefox */
@-moz-document url-prefix()
{
.arrowlistmenu { margin-top:-10px }
}
/* Safari */
@media screen and (-webkit-min-device-pixel-ratio:0)
{
.arrowlistmenu { margin-top:-10px }
}
/* Opera */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
{
.arrowlistmenu { margin-top:-10px }
}
/* IE 7 */
html > body #ie7
{
*.arrowlistmenu { margin-top:-10px }
}
/* IE 6 */
body #ie6
{
_.arrowlistmenu { margin-top:-10px }
}
With stylesheets
try
{
// TODO: Write implementation for action
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(ssAuthentication.ssSTAuthentication.ssUsername, ssAuthentication.ssSTAuthentication.ssPassword, ssAuthentication.ssSTAuthentication.ssDomain);
service.Url = new Uri(ssAuthentication.ssSTAuthentication.ssServiceUrl);
Appointment appointment = new Appointment(service);
appointment.Subject = ssSubject;
appointment.Body = ssDescription;
appointment.Start = ssStartDate;
appointment.End = ssEndDate;
appointment.Location = ssLocation;
for (int i = 0; i < ssRecipients.Length; i++)
{
appointment.RequiredAttendees.Add(ssRecipients[i].ssSTListOfEmails.ssEmail);
}
appointment.Save(SendInvitationsMode.SendOnlyToAll);
}
catch (Exception e)
{
ssErrors = "The error is: " + e.ToString();
}
//connection to ExchangeServer
try
{
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(ssAuthentication.ssSTAuthentication.ssUsername, ssAuthentication.ssSTAuthentication.ssPassword, ssAuthentication.ssSTAuthentication.ssDomain);
service.Url = new Uri(ssAuthentication.ssSTAuthentication.ssServiceUrl);
// Create an e-mail message and identify the Exchange service.
EmailMessage message = new EmailMessage(service);
// Add properties to the e-mail message.
message.From = ssSender;
message.Subject = ssEmailSubject;
message.Body = ssEmailDescription;
for (int i = 0; i < ssRecipient.Length; i++)
{
message.ToRecipients.Add(ssRecipient[i].ssSTListOfEmails.ssEmail);
}
// Send the e-mail message and save a copy.
message.Send();
}
catch (Exception e)
{
ssErrors = "The error is: " + e.ToString();
}
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(user, password, domain);
service.Url = new Uri("https://domain/EWS/Exchange.asmx");
Mailbox mb = new Mailbox(email_to_access);
FolderId fid1 = new FolderId(WellKnownFolderName.Inbox, mb);
//reads the emails
FindItemsResults <Item> - findResults = service.FindItems(fid1, new ItemView(50));
foreach (Item item in findResults.Items)
{
item.Load();
EmailMessage m = (EmailMessage)item;
if (!m.IsRead)
{
//Set Isread.
m.IsRead = true;
m.Update(ConflictResolutionMode.AutoResolve);
}
}
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential(user, password, domain);
service.Url = new Uri("https:/domain/EWS/Exchange.asmx");
Mailbox mb = new Mailbox(email_to_access);
DateTime startDate = new DateTime(2010, 1, 1);
DateTime endDate = new DateTime(2011, 1, 31);
CalendarView calView = new CalendarView(startDate, endDate);
calView.PropertySet = new PropertySet(BasePropertySet.IdOnly, AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.IsRecurring, AppointmentSchema.AppointmentType);
FindItemsResults <Appointment> findResults = service.FindAppointments(WellKnownFolderName.Calendar, calView);
foreach (Appointment appt in findResults.Items)
{
if (appt.AppointmentType == AppointmentType.Occurrence)
{
// Calendar item is an occurrence in a recurring series.
}
else if (appt.AppointmentType == AppointmentType.Exception)
{
// Calendar item is an exception in a recurring series.
}
}
static void CheckOddEven(int num)
{
if (num % 2 == 0)
{
Console.Write("\nYour number is even.\n");
}
else
{
Console.Write("\nYour number is odd.\n");
}
}
static void Main(string[] args)
{
int num = 0;
string answer = "Y";
while(answer== "Y")
{
Console.Write("Please enter a number and I will tell you whether it is odd or even.\n");
//convert input to int
num = int.Parse(Console.ReadLine());
//call method to check if the number is odd or even
CheckOddEven(num);
//ask if the user wants to continue or quit
Console.Write("Do you wanna check another number? Y/N\n");
answer= Console.ReadLine().ToUpper();
}
}