/// <summary> /// OnInitialized 方法 /// </summary> protected override void OnInitialized() { base.OnInitialized(); // 注册 Swal 弹窗事件 SwalService.Register(this, Show); }
/// <summary> /// /// </summary> /// <param name="disposing"></param> protected virtual void Dispose(bool disposing) { if (disposing) { DelayToken?.Dispose(); DelayToken = null; SwalService.UnRegister(this); } }
/// <summary> /// /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { DelayToken?.Dispose(); DelayToken = null; SwalService.UnRegister(this); } }