コード例 #1
0
        protected void GoBackward(WizardingTools.WizardPanel panel)
        {
            if (panel != null)
                if (panel.PreviousePanel != null)
                {
                    panel.Visible = false;
                    panel.PreviousePanel.Visible = true;

                    this.ActivePanel = panel.PreviousePanel;

                    UpdateForm();
                }
        }
コード例 #2
0
        protected void GoForward(WizardingTools.WizardPanel currentPanel, WizardingTools.WizardPanel nextPanel)
        {
            nextPanel.PreviousePanel = currentPanel;
            this.ActivePanel = nextPanel;

            if (currentPanel != null)
                currentPanel.Visible = false;

            nextPanel.Visible = true;
            nextPanel.Load();

            if (this.ActivePanel != null)
                UpdateForm();
        }
コード例 #3
0
        private void ChooseDatabaseWizardPanel_OnValidatePanelData(WizardPanel currentPanel, ref bool isValid)
        {
            if (this.tablesCheckedListBox.CheckedItems.Count == 0) {
                MessageBox.Show("There is No table selected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                isValid = false;
            }

            this.ExportingTablesList = new List<Table>();
            foreach (var item in this.tablesCheckedListBox.CheckedItems) {
                var itemText = this.tablesCheckedListBox.GetItemText(item);
                this.ExportingTablesList.Add(this.TablesList.First(w => w.TableName == itemText));
            }
        }