diff options
author | emkael <emkael@tlen.pl> | 2017-07-30 03:40:03 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-07-30 13:47:47 +0200 |
commit | 31d54d28ef5f19e114427e477097416ef2b8aefe (patch) | |
tree | 04797f9c12531fbd95fb2346e4edc184cbeb1b38 /Aktywator/MainForm.cs | |
parent | 618dad37ac9fa986facdcc21c1faa277f760dcb2 (diff) |
Loading RRB tournament files in names panel
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r-- | Aktywator/MainForm.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs index e2e87db..c3119d8 100644 --- a/Aktywator/MainForm.cs +++ b/Aktywator/MainForm.cs @@ -181,6 +181,25 @@ namespace Aktywator } } + private void bRRBTournament_Click(object sender, EventArgs e) + { + try + { + OpenFileDialog fDialog = new OpenFileDialog(); + fDialog.Filter = "RRBrigde tournament files (*.rrt)|*.rrt"; + fDialog.RestoreDirectory = true; + if (fDialog.ShowDialog() == DialogResult.OK) + { + tournament = new RRBTournament(fDialog.FileName); + updateTournamentInfo(tournament); + } + } + catch (Exception ee) + { + MessageBox.Show(ee.Message, "Błąd", MessageBoxButtons.OK, MessageBoxIcon.Stop); + } + } + private void updateTournamentInfo(Tournament tournament) { if (tournament != null) |