Close

The Close command is responsible for closing the currently active Layout.

Close Features

The Close command is a simple command that allows you to close the currently active layout and continue on with just the other layouts you're working with.

When you close a layout what the command does depends if there are any pending changes against the currently active layout or not.

With No Pending Changes

Closing a currently active Layout without any pending changes in its Context will result in the system simply removing that Layout from the application and disposing of any resources associated with it. No changes are made to any associated data.

With Pending Changes

Closing a currently active Layout that has pending changes in its Context will result in the following process:

  • Context spans more than one Layout
    If the Context is spanning across more than one Layout then the system will simply close the Layout. It can dispose of it safely, as the Context with the pending changes still exists in a different Layout. You can always switch to that Layout and re-open the closed Layout to see those changes again as they are all part of the same context.
  • Context only exists in this active Layout
    If the context has pending changes and it only exists in this one Layout then the system will prompt you to see if you want to save any changes first. This allows you the opportunity to cancel closing the layout, save the changes first, or just close it and loose the changes anyway.

What the Close button guarantees is that you won't loose any work by executing the Close command without first being prompted to confirm you are sure.