Exemple #1
0
        protected override void PageLoadedCore(PageLoadedDirection direction)
        {
            if (SummaryRetreiver == null)
                return;

            textBoxSummary.Text = SummaryRetreiver.Invoke();
        }
        public override void PopulatePage()
        {
            if (SummaryRetreiver == null)
            {
                return;
            }

            var entries = SummaryRetreiver.Invoke();

            m_dataGridView.Rows.Clear();
            panelErrorsFound.Visible = false;

            foreach (var pair in entries)
            {
                var row = new DataGridViewRow();

                DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell()
                {
                    Value = pair.Value
                };
                if (pair.Errors)
                {
                    valueCell.Style.Font     = new Font(m_dataGridView.Font, FontStyle.Bold);
                    panelErrorsFound.Visible = true;
                }

                row.Cells.AddRange(new DataGridViewTextBoxCell {
                    Value = pair.Key
                }, valueCell);
                m_dataGridView.Rows.Add(row);
            }

            HelpersGUI.ResizeLastGridViewColumn(Column2);//set properly the width of the last column
        }
Exemple #3
0
        public override void PopulatePage()
        {
            if (templatesOnly)
            {
                if (selectionCount > 1)
                {
                    m_labelIntro.Text = Messages.CPM_WIZARD_FINISH_PAGE_INTRO_COPY_TEMPLATE;
                }
                else
                {
                    m_labelIntro.Text = Messages.CPM_WIZARD_FINISH_PAGE_INTRO_COPY_SINGLE_TEMPLATE;
                }
            }
            else
            {
                if (selectionCount > 1)
                {
                    m_labelIntro.Text = wizardMode == WizardMode.Copy ? Messages.CPM_WIZARD_FINISH_PAGE_INTRO_COPY : Messages.CPM_WIZARD_FINISH_PAGE_INTRO;
                }
                else
                {
                    m_labelIntro.Text = wizardMode == WizardMode.Copy ? Messages.CPM_WIZARD_FINISH_PAGE_INTRO_COPY_SINGLE : Messages.CPM_WIZARD_FINISH_PAGE_INTRO_SINGLE;
                }
            }

            if (SummaryRetreiver == null)
            {
                return;
            }

            var entries = SummaryRetreiver.Invoke();

            m_dataGridView.Rows.Clear();
            panelErrorsFound.Visible = false;

            foreach (var pair in entries)
            {
                var row = new DataGridViewRow();

                DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell()
                {
                    Value = pair.Value
                };
                if (pair.Errors)
                {
                    valueCell.Style.Font     = new Font(m_dataGridView.Font, FontStyle.Bold);
                    panelErrorsFound.Visible = true;
                }

                row.Cells.AddRange(new DataGridViewTextBoxCell {
                    Value = pair.Key
                }, valueCell);
                m_dataGridView.Rows.Add(row);
            }

            HelpersGUI.ResizeLastGridViewColumn(Column2);//set properly the width of the last column
        }
Exemple #4
0
        public override void PageLoaded(PageLoadedDirection direction)
        {
            base.PageLoaded(direction);

            if (SummaryRetreiver == null)
            {
                return;
            }

            textBoxSummary.Text = SummaryRetreiver.Invoke();
        }
Exemple #5
0
        protected override void PageLoadedCore(PageLoadedDirection direction)
        {
            SummaryGridView.Rows.Clear();

            if (SummaryRetreiver == null)
            {
                return;
            }

            var entries = SummaryRetreiver.Invoke();

            foreach (KeyValuePair <string, string> pair in entries)
            {
                SummaryGridView.Rows.Add(pair.Key, pair.Value);
            }
        }
        public override void PageLoaded(PageLoadedDirection direction)
        {
            base.PageLoaded(direction);
            SummaryGridView.Rows.Clear();

            if (SummaryRetreiver == null)
            {
                return;
            }

            var entries = SummaryRetreiver.Invoke();

            foreach (KeyValuePair <string, string> pair in entries)
            {
                SummaryGridView.Rows.Add(pair.Key, pair.Value);
            }

            AutoStartCheckBox.Select();
        }
Exemple #7
0
        public override void PopulatePage()
        {
            if (SummaryRetreiver == null)
            {
                return;
            }

            var entries = SummaryRetreiver.Invoke();

            m_dataGridView.Rows.Clear();

            foreach (var pair in entries)
            {
                var row = new DataGridViewRow();
                row.Cells.AddRange(new DataGridViewTextBoxCell {
                    Value = pair.Key
                }, new DataGridViewTextBoxCell {
                    Value = pair.Value
                });
                m_dataGridView.Rows.Add(row);
            }

            HelpersGUI.ResizeLastGridViewColumn(Column2);//set properly the width of the last column
        }