/// <summary>
        /// Opens dialog to create new event.
        /// </summary>
        private void NewEvent_Click(object sender, RoutedEventArgs e)
        {
            var manageEventForm = new ManageEvent(Events)
            {
                Owner = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Width    = Width,
                Height   = Height,
                LogoText = { Text = LogoText.Text }
            };

            Visibility = Visibility.Collapsed;
            manageEventForm.ShowDialog();
        }
        private void EditEvent_Click(object sender, RoutedEventArgs e)
        {
            var currentEvent    = ((FrameworkElement)sender).DataContext as Event;
            var manageEventForm = new ManageEvent(Events)
            {
                Owner = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Width            = Width,
                Height           = Height,
                LogoText         = { Text = LogoText.Text },
                SaveEvent        = { Visibility = Visibility.Collapsed },
                SaveEventChanges = { Visibility = Visibility.Visible },
                ManagedEvent     = currentEvent
            };

            Visibility = Visibility.Collapsed;
            manageEventForm.ShowDialog();
        }
        private void EditEvent_Click(object sender, RoutedEventArgs e)
        {
            var currentEvent = ((FrameworkElement)sender).DataContext as Event;
            var manageEventForm = new ManageEvent(Events)
            {
                Owner = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Width = Width,
                Height = Height,
                LogoText = {Text = LogoText.Text},
                SaveEvent = {Visibility = Visibility.Collapsed},
                SaveEventChanges = {Visibility = Visibility.Visible},
                ManagedEvent = currentEvent
            };

            Visibility = Visibility.Collapsed;
            manageEventForm.ShowDialog();
        }
        /// <summary>
        /// Opens dialog to create new event.
        /// </summary>
        private void NewEvent_Click(object sender, RoutedEventArgs e)
        {
            var manageEventForm = new ManageEvent(Events)
            {
                Owner = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Width = Width,
                Height = Height,
                LogoText = { Text = LogoText.Text }
            };

            Visibility = Visibility.Collapsed;
            manageEventForm.ShowDialog();
        }