public void ShowStatus(Status status) { if (status.IsBusy) StatusContent = new Views.StatusDisplay { DataContext = status }; else StatusContent = null; }
public void Initialize() { _errorMessage = null; _errorTitle = null; _status = null; _view = null; _region = null; var presenter = (IPresenter)Bxf.Shell.Instance; presenter.OnShowError += (message, title) => { _errorMessage = message; _errorTitle = title; }; presenter.OnShowStatus += (status) => { _status = status; }; presenter.OnShowView += (view, region) => { _view = view; _region = region; }; }
/// <summary> /// Displays the status text. /// </summary> /// <param name="status">Status text.</param> public virtual void ShowStatus(Status status) { if (OnShowStatus != null) OnShowStatus(status); }