private void OnShowToast(ShowToastMessage showToastMessage)
        {
            var toast = new ToastViewModel(showToastMessage, _chatDocumentCreator(), _bus, _activator);
            Toasts.Add(toast);

            toast.Closed.SubscribeOnceUI(_ =>
                {
                    Toasts.Remove(toast);
                    toast.Dispose();
                });
        }
示例#2
0
        private void OnShowToast(ShowToastMessage showToastMessage)
        {
            var toast = new ToastViewModel(showToastMessage, _chatDocumentCreator(), _bus, _activator);

            Toasts.Add(toast);

            toast.Closed.SubscribeOnceUI(_ =>
            {
                Toasts.Remove(toast);
                toast.Dispose();
            });
        }