public ViewRisks() { InitializeComponent(); DatabaseMethods _data = new DatabaseMethods(); var items = _data.GetAllRisks(); tblRisks.ItemsSource = items; }