private void OpenFileButton_Click(object sender, ExecutedRoutedEventArgs e)
        {
            bool?WinRes = true;

            foreach (ObservableCollection <Event> DayItem in Days)
            {
                if (DayItem.Count != 0)
                {
                    WarningWindow Warning = new WarningWindow();
                    Warning.Owner = this;
                    WinRes        = Warning.ShowDialog();
                    break;
                }
            }

            if (WinRes == true)
            {
                OpenFileDialog ChooseFile = new OpenFileDialog();
                ChooseFile.Filter = "Text files (*.txt)|*.txt";
                if (ChooseFile.ShowDialog() == true)
                {
                    OpenFile(ChooseFile.FileName);
                }
            }
        }
        private bool EventsWarningResult()
        {
            if (AreThereNoEvents() == false)
            {
                WarningWindow Warning = new WarningWindow();
                Warning.Owner = this;
                if (Warning.ShowDialog() == true)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }

            return(true);
        }
        private void UpLoadButton_Click(object sender, RoutedEventArgs e)
        {
            bool?WinRes = true;

            foreach (ObservableCollection <Event> DayItem in Days)
            {
                if (DayItem.Count != 0)
                {
                    WarningWindow Warning = new WarningWindow();
                    WinRes = Warning.ShowDialog();
                    break;
                }
            }

            if (WinRes == true)
            {
                ReadSettings();
            }
        }