private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ticketDetails = new TicketDetails(TicketService.ClientCredentials);
                ticketDetails.RefreshAll += TicketDetails_RefreshAll;
                this.TicketDetailsContentControl.Content = ticketDetails;
            }
            catch (Exception ex)
            {

            }
        }
        private void TicketsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                ticketDetails = new TicketDetails(TicketService.ClientCredentials, (Ticket)TicketsListBox.SelectedItem);
                ticketDetails.RefreshAll += TicketDetails_RefreshAll;
                this.TicketDetailsContentControl.Content = ticketDetails;
            }
            catch(Exception ex)
            {

            }
            
        }
 private void TicketDetails_RefreshAll(object sender, EventArgs e)
 {
     IsUpdating = true;
     FillData();
     TicketDetailsContentControl.Content = null;
     ticketDetails = null;
     IsUpdating = false;
 }