Exemple #1
0
 /// <summary>
 /// Clear all loaded calendar information
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event arguments</param>
 private void miClear_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure you want to remove all calendar information?",
                         "Clear calendar", MessageBoxButtons.YesNo, MessageBoxIcon.Question,
                         MessageBoxDefaultButton.Button2) == DialogResult.Yes)
     {
         vCal.ClearProperties();
         this.LoadGridWithItems(true);
         wasModified = true;
     }
 }