/// <summary> /// Loads the Project Creation Dialog /// </summary> /// <param name="sender">Object that fired the event</param> /// <param name="e">.NET supplied event parameters</param> private void ProjectFromExcelDialog_Load(object sender, EventArgs e) { if (!this.DesignMode) { txtNewProjectLocation.Text = Configuration.GetNewInstance().Directories.Project; WinUtil.FillMetadataDriversList(cbxCollectedDataDriver); Configuration config = Configuration.GetNewInstance(); cbxCollectedDataDriver.SelectedValue = config.Settings.DefaultDataDriver; txtProjectName.Focus(); } //foreach (ListViewItem item in projectTemplateListView.Items) //{ // string fullPath = item.SubItems[3].Text; // if (fullPath.Contains(SelectedTemplatePath)) // { // item.Selected = true; // item.Focused = true; // break; // } //} //projectTemplateListView.ColumnClick += new ColumnClickEventHandler(projectTemplateListView_ColumnClick); }
/// <summary> /// Loads the Project Creation Dialog /// </summary> /// <param name="sender">Object that fired the event</param> /// <param name="e">.NET supplied event parameters</param> private void ProjectCreationDialog_Load(object sender, EventArgs e) { if (!this.DesignMode) { txtProjectLocation.Text = Configuration.GetNewInstance().Directories.Project; WinUtil.FillMetadataDriversList(cbxMetadataDriver); WinUtil.FillMetadataDriversList(cbxCollectedDataDriver); // Select the default value from config file ... Configuration config = Configuration.GetNewInstance(); cbxMetadataDriver.SelectedValue = config.Settings.DefaultDataDriver; cbxCollectedDataDriver.SelectedValue = config.Settings.DefaultDataDriver; txtProjectName.Focus(); } }