public StandRatingAdmin(Stand _currentS, Window _parent) { InitializeComponent(); currentStand = _currentS; myParent = _parent; fillGridRatings(); calcAvgRatings(); gridRatings.IsReadOnly = true; }
private void addTestData() { //TODO //Get all Stands from Abteilung listViewStaende.Items.Add(new Stand(1, "SAP", "Funny SAP Things", null)); listViewStaende.Items.Add(new Stand(2, "ABAP", "Funny ABAP Things", null)); listViewStaende.Items.Add(new Stand(3, "POS", "Funny POS Things", null)); Stand ratingS = new Stand(3, "Test", "Funny Test Things", null); ratingS.addRatingToStand(new StandRating(1, 1, 1, 1)); listViewStaende.Items.Add(ratingS); }
private void btnAddStand_Click(object sender, RoutedEventArgs e) { Stand toAdd = new Stand(1, txtName.Text, txtInfo.Text, rect); //post Stand }