/// <summary> /// Time to write properties to drawing document. /// </summary> /// <param name="sender">Who clicked?</param> /// <param name="e">Any args?</param> private void bOK_Click(object sender, EventArgs e) { PropertySet.ReadControls(); PropertySet.Write(SwApp); RevSet.Write(SwApp); // If you're wondering what takes so long to write props on drawings sometimes, it's this: (SwApp.ActiveDoc as ModelDoc2).ForceRebuild3(true); }
/// <summary> /// Populate controls. /// </summary> private void GetData() { PropertySet.Read(); RevSet.Read(); FillBoxes(); if (Properties.Settings.Default.RememberLastCustomer && (PropertySet.GetProperty("CUSTOMER").Value == string.Empty)) { cbCustomer.SelectedIndex = Properties.Settings.Default.LastCustomerSelection; } }