public static FurnitureFamilyDragAndDropForm GetTheForm(Document document) { if (s_form == null) { s_form = new FurnitureFamilyDragAndDropForm(document); } s_form.UpdateLoadedFamilies(); return(s_form); }
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { // show the form FurnitureFamilyDragAndDropForm form = FurnitureFamilyDragAndDropForm.GetTheForm(commandData.View.Document); form.Show(); form.BringToFront(); return(Result.Succeeded); }
private void FurnitureFamilyDragAndDropForm_FormClosed(object sender, FormClosedEventArgs e) { s_form = null; }