For this C# assignment update the total credit hours textbox ifregistration is confirmed for a selected course for the box calledTextBox to display the amount of total credits I have. Each courseis worth 3 credits and I can only choose a maximum of 9 credits.what doe I need to add in order to get it to display what I want itto display?
This is the code written in the MainWindow.xaml.cs
using System.Windows;
using System.Windows.Controls;
namespace WPFRegisterStudent
{
public partial class MainWindow : Window
{
Course choice;
private int totalCredits;//added this for the credits
public MainWindow()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgse)
{
Course course1 = new Course(“IT 145”);
Course course2 = new Course(“IT 200”);
Course course3