/// <summary> /// Handles the Click event of the buttonDBSelect control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void buttonDBSelect_Click(object sender, RoutedEventArgs e) { System.Windows.Interop.WindowInteropHelper helper = new System.Windows.Interop.WindowInteropHelper(ThisExtension.GetWindowForParent()); if (DBExplorerDialogManager.ShowContentDialogParentIntPtr(DBExplorerSettings, helper.Handle)) { this.DatabaseSection = DBExplorerSettings.SectionDBSettings.SelectedElement as REX.ContentGenerator.Families.REXFamilyType_DBSection; UpdateDatabaseSectionProperties(); } }
/// <summary> /// Fill the parametric property control with data. /// </summary> private void SetDatabasesProperties() { if (ThisMainExtension.Data.DatabaseSection != null) { REX.ContentGenerator.Families.REXFamilyType_DBSection section = ThisMainExtension.Data.DatabaseSection; databasesProperties.ClearProperties(); databasesProperties.AddProperty("Certified", section.Certified.ToString()); databasesProperties.AddProperty("Material", section.Material.ToString()); databasesProperties.AddProperty("Database", section.Parameters.DBName); databasesProperties.AddProperty("Alias name", section.Parameters.Description.NAME_REVIT); } }