private void btnAddQueue_Click(object sender, RoutedEventArgs e)
        {
            QueueWindow queueWindow = new QueueWindow();

            if (queueWindow.ShowDialog() == true)
            {
                Entity_.queues.Add(queueWindow.Queue);
            }

            lstQueue.Items.Refresh();
        }
 private void lstQueue_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     if (lstQueue.SelectedIndex >= 0 && lstQueue.SelectedIndex < lstQueue.Items.Count)
     {
         if (e.ClickCount == 2)
         {
             QueueWindow queueWindow = new QueueWindow(lstQueue.SelectedItem as EventQueue);
             queueWindow.ShowDialog();
             lstQueue.Items.Refresh();
         }
         btnAddEvent.IsEnabled = true;
     }
 }