Exemplo n.º 1
0
        private async void BorderReplay_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            ToastManager.ForceCloseToast(this);
            await Task.Delay(500);

            ReplayLauncher.ShowReplay(_game, true).Forget();
        }
 private void ReplayProgressToast_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => ToastManager.ForceCloseToast(this);
        private async Task DelayedForceClose(int ms)
        {
            await Task.Delay(ms);

            ToastManager.ForceCloseToast(this);
        }
 private void RectangleClose_OnMouseDown(object sender, MouseButtonEventArgs e) => ToastManager.ForceCloseToast(this);
 private void CollectionUploadedToast_OnClicked(object sender, EventArgs e)
 {
     ToastManager.ForceCloseToast(this);
     HSReplayNetHelper.OpenDecksUrlWithCollection("collection_uploaded_toast");
 }
 public void Hide(UserControl toast)
 {
     ToastManager.ForceCloseToast(toast);
 }