Tournament Dashboard fixed, started to wire up tournamentviewer form
This commit is contained in:
@ -7,14 +7,37 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TrackerLibrary;
|
||||
using TrackerLibrary.Models;
|
||||
|
||||
namespace TrackerUI
|
||||
{
|
||||
public partial class TournamentDashboardForm : Form
|
||||
{
|
||||
List<TournamentModel> tournaments = GlobalConfig.Connection.GetTournament_All();
|
||||
public TournamentDashboardForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
WireUpLists();
|
||||
}
|
||||
|
||||
private void WireUpLists()
|
||||
{
|
||||
loadExistingTournamentDropDown.DataSource = tournaments;
|
||||
loadExistingTournamentDropDown.DisplayMember = "TournamentName";
|
||||
}
|
||||
|
||||
private void createTournamentButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
CreateTournamentForm frm = new CreateTournamentForm();
|
||||
frm.Show();
|
||||
}
|
||||
|
||||
private void loadTournamentButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
TournamentModel tm = (TournamentModel)loadExistingTournamentDropDown.SelectedItem;
|
||||
TournamentViewerForm frm = new TournamentViewerForm(tm);
|
||||
frm.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user