Esempio n. 1
0
        public JiraForm(JiraConnector jiraConnector)
        {
            InitializeComponent();
            this.Icon    = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon();
            AcceptButton = uploadButton;
            CancelButton = cancelButton;

            initializeComponentText();

            this.columnSorter = new GreenshotColumnSorter();
            this.jiraListView.ListViewItemSorter = columnSorter;

            this.jiraConnector = jiraConnector;

            changeModus(false);
            try {
                if (!jiraConnector.isLoggedIn)
                {
                    jiraConnector.login();
                }
            } catch (Exception e) {
                MessageBox.Show(Language.GetFormattedString("jira", LangKey.login_error, e.Message));
            }
            uploadButton.Enabled = false;
            updateForm();
        }
Esempio n. 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (jiraConnector != null)
         {
             jiraConnector.Dispose();
             jiraConnector = null;
         }
     }
 }
Esempio n. 3
0
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (JiraConnector != null)
         {
             JiraConnector.Dispose();
             JiraConnector = null;
         }
     }
 }
Esempio n. 4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (jiraConnector != null)
         {
             jiraConnector.Dispose();
             jiraConnector = null;
         }
     }
 }