mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Remove obsolete Top and Win properties
This commit is contained in:
@@ -138,25 +138,10 @@ public class Scenario : IDisposable
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The Toplevel for the <see cref="Scenario"/>. This should be set to <see cref="Terminal.Gui.Application.Top"/>.
|
||||
/// </summary>
|
||||
|
||||
//[ObsoleteAttribute ("This property is obsolete and will be removed in v2. Use Main instead.", false)]
|
||||
public Toplevel Top { get; set; }
|
||||
|
||||
/// <summary>Gets the Scenario Name + Description with the Description padded based on the longest known Scenario name.</summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString () { return $"{GetName ().PadRight (_maxScenarioNameLen)}{GetDescription ()}"; }
|
||||
|
||||
/// <summary>
|
||||
/// The Window for the <see cref="Scenario"/>. This should be set to <see cref="Terminal.Gui.Application.Top"/> in
|
||||
/// most cases.
|
||||
/// </summary>
|
||||
|
||||
//[ObsoleteAttribute ("This property is obsolete and will be removed in v2. Use Main instead.", false)]
|
||||
public Window Win { get; set; }
|
||||
|
||||
#region IDispose
|
||||
|
||||
public void Dispose ()
|
||||
@@ -172,8 +157,6 @@ public class Scenario : IDisposable
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
Top?.Dispose ();
|
||||
Win?.Dispose ();
|
||||
}
|
||||
|
||||
_disposedValue = true;
|
||||
|
||||
Reference in New Issue
Block a user