コード例 #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;
            }
            ;
        }
コード例 #2
0
        public SelectStoreView([ServiceDependency] WizardPresenter presenter)
            : this()
        {
            Presenter = presenter;

            this.Caption = "Select Data Store";

            BuildOptions = presenter.GetBuildOptions();

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

            dataSourceList.TextChanged += new EventHandler(dataSourceList_TextChanged);
        }