diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-02-11 02:24:33 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-02-11 02:24:33 +0200 |
| commit | 6c6dfe112268888b6859da5880d866943d1a4455 (patch) | |
| tree | daf4e006d3fefb3d9a6825de3d4ef5575e94714f /Software/Visual_Studio/Tango.Editors | |
| parent | dbfde8706313c147a28b16bcc7e7fef158d930bb (diff) | |
| download | Tango-6c6dfe112268888b6859da5880d866943d1a4455.tar.gz Tango-6c6dfe112268888b6859da5880d866943d1a4455.zip | |
Implemented Save/Load tech project.
Added menu items...
Diffstat (limited to 'Software/Visual_Studio/Tango.Editors')
| -rw-r--r-- | Software/Visual_Studio/Tango.Editors/ElementEditor.cs | 10 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Editors/IElementEditor.cs | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Editors/ElementEditor.cs b/Software/Visual_Studio/Tango.Editors/ElementEditor.cs index 99520ba5b..5d90a2b4c 100644 --- a/Software/Visual_Studio/Tango.Editors/ElementEditor.cs +++ b/Software/Visual_Studio/Tango.Editors/ElementEditor.cs @@ -235,6 +235,15 @@ namespace Tango.Editors Height = bounds.Height; } + /// <summary> + /// Gets the editor bounds. + /// </summary> + /// <returns></returns> + public virtual Rect GetBounds() + { + return new Rect(Left, Top, Width, Height); + } + #endregion #region Protected Methods @@ -624,6 +633,7 @@ namespace Tango.Editors /// <returns></returns> public abstract IElementEditor Clone(); + #endregion #region IConfigurable Members diff --git a/Software/Visual_Studio/Tango.Editors/IElementEditor.cs b/Software/Visual_Studio/Tango.Editors/IElementEditor.cs index fc7c93396..dfe539537 100644 --- a/Software/Visual_Studio/Tango.Editors/IElementEditor.cs +++ b/Software/Visual_Studio/Tango.Editors/IElementEditor.cs @@ -103,6 +103,12 @@ namespace Tango.Editors void SetBounds(Rect bounds); /// <summary> + /// Gets the editor bounds. + /// </summary> + /// <returns></returns> + Rect GetBounds(); + + /// <summary> /// Gets or sets an optional attached element for editors mirroring mode. /// </summary> IElementEditor AttachedEditor { get; set; } |
