public CombatLogUserControl(object par) { InitializeComponent(); repos = new CombatLogRepository(); combatLogList = repos.GetAll().Where(x => x.PlayerId == (int)par).ToList(); usersDataGrid.Update(); usersDataGrid.DataSource = combatLogList; }
public CombatLogUserControl(object par) { InitializeComponent(); repos = new CombatLogRepository(); combatLogList = repos.GetAll().Where(x => x.PlayerId == (int)par) .ToList(); usersDataGrid.Update(); usersDataGrid.DataSource = combatLogList; }
public CombatLogUserControl() { InitializeComponent(); repos = new CombatLogRepository(); combatLogList = repos.GetAll().ToList(); usersDataGrid.Update(); usersDataGrid.DataSource = combatLogList; }