Example #1
0
        private void ShowAttachments()
        {
            if (ticketsListView.SelectedItems.Count != 1)
            {
                return;
            }

            var tag = (Ticket)ticketsListView.SelectedItems[0].Tag;

            using (var form = new AttachmentsForm(mContext, tag)) {
                form.ShowDialog();
            }
        }
Example #2
0
        private void ShowAttachments()
        {
            if (ticketsListUserControl.TicketsListView.SelectedItems.Count != 1)
            {
                return;
            }

            Ticket ticket = (Ticket)ticketsListUserControl.TicketsListView.SelectedItems[0].Tag;

            AttachmentsForm form = new AttachmentsForm(ticket);

            form.ShowDialog();

            return;
        }