private void PrintAllSlipButtonClick(object sender, RoutedEventArgs e) { try { FeeSlipViewer fsv = new FeeSlipViewer(""); fsv.Show(); } catch (Exception err) { MessageBox.Show(err.ToString()); } }
private void PrintSlipButtonClick(object sender, RoutedEventArgs e) { try { string grade = ((ComboBoxItem)Grade.SelectedItem).Tag.ToString(); FeeSlipViewer FSV = new FeeSlipViewer(grade); FSV.Show(); } catch (Exception err) { MessageBox.Show(err.ToString()); } }