Exemplo n.º 1
0
        public void ResultClick()
        {
            if (_view.ListViewEvent.SelectedItems.Count > 0)
            {
                try
                {
                    _view.Hide();
                    Contest c = Database.GetContest(Int32.Parse(_view.ListViewEvent.SelectedItems[0].SubItems[5].Text));
                    Database.GetScoresToDives(c);

                    EventPresenter presenter = new EventPresenter(null, c);
                    presenter.ShowViewDialog();
                    _view.Show();
                }
                catch (Exception ex)
                {
                    ExceptionHandler.Handle(ex);
                }
            }
            else
            {
                MessageBox.Show("Välj ett event, försök igen", "Fel format", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }
Exemplo n.º 2
0
 public void Show()
 {
     _view.Show();
 }