/// <summary> /// provide user UI to duplicate FamilySymbols /// </summary> /// <param name="typesMgr">data manager of FamilySymbols</param> /// <param name="symbol">FamilySymbol to be copied</param> /// <returns>does duplicate</returns> private static bool DuplicateSymbol(FrameTypesMgr typesMgr, Object symbol) { bool result = false; using (DuplicateTypeForm typeFrm = new DuplicateTypeForm(symbol, typesMgr)) { if (typeFrm.ShowDialog() == DialogResult.OK) { result = true; } } return result; }
/// <summary> /// provide user UI to duplicate FamilySymbols /// </summary> /// <param name="typesMgr">data manager of FamilySymbols</param> /// <param name="symbol">FamilySymbol to be copied</param> /// <returns>does duplicate</returns> private static bool DuplicateSymbol(FrameTypesMgr typesMgr, Object symbol) { bool result = false; using (DuplicateTypeForm typeFrm = new DuplicateTypeForm(symbol, typesMgr)) { if (typeFrm.ShowDialog() == DialogResult.OK) { result = true; } } return(result); }