コード例 #1
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();
                });
        }
コード例 #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();
            });
        }