/// <summary> /// Launch form to get ExtendedPropertyDefinition information /// </summary> /// <param name="sender">The parameter is not used.</param> /// <param name="e">The parameter is not used.</param> private void BtnAddExtended_Click(object sender, EventArgs e) { ExtendedPropertyDefinition epd = null; if (ExtendedPropertyDialog.ShowDialog(ref epd) == DialogResult.OK) { this.AddPropertyToDisplayTable(epd); } }
public static DialogResult ShowDialog(ref ExtendedPropertyDefinition propDef) { ExtendedPropertyDialog dialog = new ExtendedPropertyDialog(); DialogResult res = dialog.ShowDialog(); if (res == DialogResult.OK) { propDef = dialog.currentDefinition; } return(res); }
/// <summary> /// Display the ExtendedPropertyDialog /// </summary> /// <param name="sender">The parameter is not used.</param> /// <param name="e">The parameter is not used.</param> private void MnuResolveExProp_Click(object sender, EventArgs e) { ExtendedPropertyDefinition epd = null; ExtendedPropertyDialog.ShowDialog(ref epd); }