コード例 #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
ファイル: DragAndDropCommand.cs プロジェクト: chipyaya/BeDIPs
        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;
 }