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; } ; }
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); }