Remove obsolete Top and Win properties

This commit is contained in:
BDisp
2024-07-13 23:55:51 +01:00
parent 748be6cd95
commit fb20feacd1

View File

@@ -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;