public void DirtyHide()
 {
     this.DirtyExit = false;
     if (this.IsDirty)
     {
         NavController.Unlock();
         this.IsDirty = false;
     }
     this.Display = false;
     this.CloseAction.InvokeAsync();
     this.InvokeAsync(this.StateHasChanged);
 }
 public void SetDirty()
 {
     if (this.IsDirty)
     {
         NavController?.Unlock();
         this.DirtyExit = false;
     }
     else
     {
         NavController?.Lock();
         this.DirtyExit = true;
     }
     this.IsDirty = !this.IsDirty;
     this.InvokeAsync(this.StateHasChanged);
 }