BS_PassiveView
Add a class to the MVP folder called "BS_PassiveView".
Make the following changes to this class.
public abstract class BS_PassiveView<TModel, TView> : System.IDisposable
{
protected TView View { get; set; }
protected TModel Model { get; set; }
protected abstract void Method_WireEvents();
protected abstract void Method_UnwireEvents();
//-----------------------------------------------------------------------
public virtual void Initialize(TModel MyModel, TView MyView)
{
if (this.Model != null || this.View != null)
{
Method_UnwireEvents();
}
this.Model = MyModel;
this.View = MyView;
Method_WireEvents();
}
//-----------------------------------------------------------------------
public void Dispose()
{
Method_UnwireEvents();
}
}
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext