// The metod delete the information from database
        /// <summary>
        /// The metod delete the information from database
        /// </summary>
        /// <param name="sender"> Contains a reference to the object that triggered the event </param>
        /// <param name="e"> Contains state information and event data associated with a routed event  </param>
        private void Delete_Click(object sender, RoutedEventArgs e)
        {
            DecisionWindow decisionWindow = new DecisionWindow("Are you sure you want to delete this task?", "Delete Event");
            bool           msgBoxResult   = decisionWindow.ShowDialog(true);

            if (msgBoxResult == true)
            {
                SetGrayForeground();
                DbToDoList.DeleteToDoList(this.updatingToDoListID);
            }
            UpdateGrid();
        }
        // The metod delete the information from database
        /// <summary>
        /// The metod delete the information from database
        /// </summary>
        /// <param name="sender"> Contains a reference to the object that triggered the event </param>
        /// <param name="e"> Contains state information and event data associated with a routed event  </param>
        private void ButtonDelete_Click(object sender, RoutedEventArgs e)
        {
            DecisionWindow decisionWindow = new DecisionWindow("Are you sure you want to delete this event?", "Delete Event");
            bool           msgBoxResult   = decisionWindow.ShowDialog(true);

            if (msgBoxResult == true)
            {
                mainWindow.RemoveEventToStackPanel(this.updatingEventID);
                SetGrayForeground();
                DbEvent.DeleteEvent(this.updatingEventID);
            }
            UpdateGrid();
            mainWindow.RefreshAllDayButtons();
            mainWindow.ShowCurrentDay();
        }