private void Lv_Checked(object sender, RoutedEventArgs e) { ExamSlot sl = (tbcSl.SelectedItem as Op0SlotView).mSl; if (rdoA.IsChecked.HasValue ? rdoA.IsChecked.Value : false) { grdB.Visibility = Visibility.Collapsed; grdA.Visibility = Visibility.Visible; txtNqs.Text = sl.CountQSByRoom(ExamLv.A).ToString(); } else { grdA.Visibility = Visibility.Collapsed; grdB.Visibility = Visibility.Visible; txtNqs.Text = sl.CountQSByRoom(ExamLv.B).ToString(); } }
public void GenQ(ExamLv lv, int[] vnesydif, int[] vndiff) { vNEsyDif[lv] = vnesydif; vNDiff[lv] = vndiff; mSl.GenQ(mSl.CountQSByRoom(lv), lv, vnesydif, vndiff); ShowQSHeader(); }