Example #1
0
        public GenerateCodeView([ServiceDependency] WizardPresenter presenter)
            : this()
        {
            Presenter    = presenter;
            this.Caption = "GenerateCode";

            BuildOptions = presenter.GetBuildOptions();

            language.Items.Add("C#");
            language.SelectedIndex = 0;
            // TODO: load from options

            outputFolder.Text = BuildOptions.OutputFolder;

            entityNamespace.Text = BuildOptions.EntityNamespace;

            entityModifier.Items.Add("Public");
            entityModifier.Items.Add("Internal");

            switch (BuildOptions.EntityModifier)
            {
            case TypeAttributes.NotPublic:
                entityModifier.SelectedIndex = 1;
                break;

            default:
                entityModifier.SelectedIndex = 0;
                break;
            }
            ;
        }
Example #2
0
        public SelectEntitiesView([ServiceDependency] WizardPresenter presenter)
            : this()
        {
            Presenter = presenter;

            this.Caption          = "Select Entities";
            entityTree.CheckBoxes = true;

            Source = Presenter.GetCurrentDataSource();
        }
        public SelectStoreView([ServiceDependency] WizardPresenter presenter)
            : this()
        {
            Presenter = presenter;

            this.Caption = "Select Data Store";

            sourceType.SelectedIndexChanged += new EventHandler(sourceType_SelectedIndexChanged);
            LoadSourceTypes();

            dataSourceList.TextChanged += new EventHandler(dataSourceList_TextChanged);
        }
Example #4
0
 public void InitializeWizard()
 {
     btnNext.Click     += (o, e) => this.DoWithinWaitCursor(() => WizardPresenter.WizardNext(SelectedPageIndex));
     btnPrevious.Click += (o, e) => this.DoWithinWaitCursor(() => WizardPresenter.WizardPrevious(SelectedPageIndex));
     TabControl.SelectedPageChanging += (o, e) => onSelectedPageChanging(e.PrevPage.TabIndex, e.Page.TabIndex);
 }
Example #5
0
 private void onSelectedPageChanging(int previousIndex, int index)
 {
     this.DoWithinLatch(() =>
                        this.DoWithinWaitCursor(() => WizardPresenter.WizardCurrent(previousIndex, index)));
 }