예제 #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();
        }
예제 #2
0
        private ImgurHistory()
        {
            this.ManualLanguageApply = true;
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            this.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon();

            // Init sorting
            columnSorter = new GreenshotColumnSorter();
            this.listview_imgur_uploads.ListViewItemSorter = columnSorter;
            columnSorter.SortColumn = 3;
            columnSorter.Order      = SortOrder.Descending;
            redraw();
            if (listview_imgur_uploads.Items.Count > 0)
            {
                listview_imgur_uploads.Items[0].Selected = true;
            }
            ApplyLanguage();
            if (config.Credits > 0)
            {
                this.Text = this.Text + " (" + config.Credits + " credits)";
            }
        }
예제 #3
0
 private ImgurHistory()
 {
     ManualLanguageApply = true;
     //
     // The InitializeComponent() call is required for Windows Forms designer support.
     //
     InitializeComponent();
     AcceptButton = finishedButton;
     CancelButton = finishedButton;
     // Init sorting
     _columnSorter = new GreenshotColumnSorter();
     listview_imgur_uploads.ListViewItemSorter = _columnSorter;
     _columnSorter.SortColumn = 3;
     _columnSorter.Order      = SortOrder.Descending;
     Redraw();
     if (listview_imgur_uploads.Items.Count > 0)
     {
         listview_imgur_uploads.Items[0].Selected = true;
     }
     ApplyLanguage();
     if (Config.Credits > 0)
     {
         Text = Text + " (" + Config.Credits + " credits)";
     }
 }
예제 #4
0
파일: JiraForm.cs 프로젝트: zhk/greenshot
        public JiraForm(JiraConnector jiraConnector)
        {
            InitializeComponent();
            Icon         = GreenshotResources.getGreenshotIcon();
            AcceptButton = uploadButton;
            CancelButton = cancelButton;

            InitializeComponentText();

            _columnSorter = new GreenshotColumnSorter();
            jiraListView.ListViewItemSorter = _columnSorter;

            _jiraConnector = jiraConnector;

            ChangeModus(false);

            uploadButton.Enabled = false;
            Load += OnLoad;
        }