form to duplicate FamilySymbol and edit its name and parameters
Inheritance: System.Windows.Forms.Form
示例#1
0
 /// <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;
 }