예제 #1
0
 public static FurnitureFamilyDragAndDropForm GetTheForm(Document document)
 {
     if (s_form == null)
     {
         s_form = new FurnitureFamilyDragAndDropForm(document);
     }
     s_form.UpdateLoadedFamilies();
     return(s_form);
 }
예제 #2
0
        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);
        }
예제 #3
0
 private void FurnitureFamilyDragAndDropForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     s_form = null;
 }