Inheritance: System.Windows.Controls.UserControl
Exemple #1
0
        private void OnNewTicket(object sender, RoutedEventArgs e)
        {
            var new_ticket_view = new NewTicket();

            m_new_ticket_container.Content = new_ticket_view;
            new_ticket_view.TicketSaved   += () =>
            {
                m_new_ticket_container.Content    = null;
                m_new_ticket_container.Visibility = Visibility.Collapsed;
                m_edit_ticket.Visibility          = Visibility.Visible;
                Reload();
                m_list.SelectedIndex = 0;
            };
            m_edit_ticket.Visibility          = Visibility.Collapsed;
            m_new_ticket_container.Visibility = Visibility.Visible;
            ////m_sidebar.Content = new_ticket_view;
            //new_ticket_view.Width = 400;
            //new_ticket_view.Height = 600;
            //new_ticket_view.Owner = this;
            //new_ticket_view.Show();
        }
Exemple #2
0
 private void OnNewTicket(object sender, RoutedEventArgs e)
 {
     var new_ticket_view = new NewTicket();
     m_new_ticket_container.Content = new_ticket_view;
     new_ticket_view.TicketSaved += () =>
     {
         m_new_ticket_container.Content = null;
         m_new_ticket_container.Visibility = Visibility.Collapsed;
         m_edit_ticket.Visibility = Visibility.Visible;
         Reload();
         m_list.SelectedIndex = 0;
     };
     m_edit_ticket.Visibility = Visibility.Collapsed;
     m_new_ticket_container.Visibility = Visibility.Visible;
     ////m_sidebar.Content = new_ticket_view;
     //new_ticket_view.Width = 400;
     //new_ticket_view.Height = 600;
     //new_ticket_view.Owner = this;
     //new_ticket_view.Show();
 }