BHoM / BHoM_Adapter

GNU Lesser General Public License v3.0
7 stars 6 forks source link

Adapter_oM: Command for controlling visibility of external software window during CRUD #289

Open IsakNaslundBh opened 3 years ago

IsakNaslundBh commented 3 years ago

Description:

Additional Command to control if you want the UI of the adapter to be shown or not. Many action can run quicker when the UI window is closed, as it can make the software skip refreshing viewports and similar.

Thinking of adding it in the base Adapter_oM to centralise.

SOmthing like


public class UiWindowControl : IExecuteCOmmand
{
      public virtual bool IsVisible {get;set;} = true;
}

More than happy for a better name for it!!

Thoguhts @peterjamesnugent @JosefTaylor @enarhi @alelom @al-fisher @FraserGreenroyd ?

peterjamesnugent commented 3 years ago

A couple of commands we have in Lusas_Toolkit that may be worth looking in to:

Perhaps it can be called ToggleWindow?