private void BatchCreateJiraCase()
        {
            if (!CheckVaild())
            {
                return;
            }
            var selectionMails = Application.ActiveExplorer().Selection;

            if (selectionMails.Count > 0)
            {
                var mails        = selectionMails.OfType <MailItem>().ToList();
                var cancellation = new CancellationTokenSource();
                if (m_FormCreateJiraCaseProgress == null || m_FormCreateJiraCaseProgress.IsDisposed)
                {
                    m_FormCreateJiraCaseProgress = new FormCreateJiraCaseProgress(mails.Count, cancellation);
                }
                else
                {
                    m_FormCreateJiraCaseProgress.Init(mails.Count, cancellation);
                }
                BatchCreateJiraCase(mails, cancellation);
                m_FormCreateJiraCaseProgress.Show();
                m_FormCreateJiraCaseProgress.Focus();
            }
        }
        private void SingleCreateJiraCase()
        {
            if (!CheckVaild())
            {
                return;
            }
            var cancellation = new CancellationTokenSource();

            if (m_FormCreateJiraCaseProgress == null || m_FormCreateJiraCaseProgress.IsDisposed)
            {
                m_FormCreateJiraCaseProgress = new FormCreateJiraCaseProgress(1, cancellation);
            }
            else
            {
                m_FormCreateJiraCaseProgress.Init(1, cancellation);
            }
            SingleCreateJiraCase(cancellation);
            m_FormCreateJiraCaseProgress.Show();
        }