예제 #1
0
        private void btnUnmatch_Click(object sender, RoutedEventArgs e)
        {
            if (lsbMatches.SelectedIndex < 0)
            {
                MessageBox.Show("You need to select a match before you can unmatch");
                return;
            }

            ConfimWithLogin confirmWithLogin = new ConfimWithLogin();

            confirmWithLogin.ShowDialog();

            if (App.Current.Resources["confirmWithLoginBool"].ToString() == "True")
            {
                myViewMatchesViewModel.viewMatchesRepo.unmatch(lsbMatches.SelectedIndex);
                MessageBox.Show("Unmatch succesful.");
                ViewMatches viewMatches = new ViewMatches();
                viewMatches.Show();
                this.Close();
            }
            else
            {
                return;
            }
        }
예제 #2
0
        private void btnViewMatches_Click(object sender, RoutedEventArgs e)
        {
            ViewMatches viewMatches = new ViewMatches();

            viewMatches.Show();
            this.Close();
        }