private void ShowTicketHistory() { if (ticketsListView.SelectedItems.Count != 1) { return; } var tag = (Ticket)ticketsListView.SelectedItems[0].Tag; using (var form = new TicketHistoryForm(mContext, tag)) { form.ShowDialog(); } }
private void ShowTicketHistory() { if (ticketsListUserControl.TicketsListView.SelectedItems.Count != 1) { return; } Ticket ticket = (Ticket)ticketsListUserControl.TicketsListView.SelectedItems[0].Tag; TicketHistoryForm form = new TicketHistoryForm(ticket); form.ShowDialog(); return; }