예제 #1
0
        void OnSolutionRefresh(object sender, EventArgs e)
        {
            bool showIssueBox = false;

            if (Context != null)
            {
                IProjectCommitSettings pcs = Context.GetService <IProjectCommitSettings>();

                if (pcs != null)
                {
                    showIssueBox = pcs.ShowIssueBox;

                    if (showIssueBox)
                    {
                        issueLabel.Text = pcs.IssueLabel ?? PCResources.IssueLabelText;
                    }

                    _issueNummeric = pcs.NummericIssueIds;
                }
            }

            if (showIssueBox != issueNumberBox.Visible)
            {
                issueNumberBox.Enabled = issueNumberBox.Visible =
                    issueLabel.Enabled = issueLabel.Visible = showIssueBox;
            }
        }
예제 #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode)
            {
                return;
            }

            logMessage.Select();

            IProjectCommitSettings pcs = Context.GetService <IProjectCommitSettings>();

            if (pcs.ShowIssueBox)
            {
                _issueNummeric  = pcs.NummericIssueIds;
                issueLabel.Text = pcs.IssueLabel;

                issueNumberBox.Enabled = issueNumberBox.Visible =
                    issueLabel.Enabled = issueLabel.Visible = true;
            }

            pendingList.ColumnWidthChanged += new ColumnWidthChangedEventHandler(pendingList_ColumnWidthChanged);
            IDictionary <string, int> widths = ConfigurationService.GetColumnWidths(GetType());

            pendingList.SetColumnWidths(widths);
        }