1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using NStack;
- namespace Terminal.Gui {
- /// <summary>
- /// Event arguments for Title change events.
- /// </summary>
- public class TitleEventArgs : EventArgs {
- /// <summary>
- /// The new Window Title.
- /// </summary>
- public ustring NewTitle { get; set; }
- /// <summary>
- /// The old Window Title.
- /// </summary>
- public ustring OldTitle { get; set; }
- /// <summary>
- /// Flag which allows canceling the Title change.
- /// </summary>
- public bool Cancel { get; set; }
- /// <summary>
- /// Initializes a new instance of <see cref="TitleEventArgs"/>
- /// </summary>
- /// <param name="oldTitle">The <see cref="View.Title"/> that is/has been replaced.</param>
- /// <param name="newTitle">The new <see cref="View.Title"/> to be replaced.</param>
- public TitleEventArgs (ustring oldTitle, ustring newTitle)
- {
- OldTitle = oldTitle;
- NewTitle = newTitle;
- }
- }
- }
|