Ejemplo n.º 1
0
 private void BtnClose_Click(object sender, EventArgs e)
 {
     try
     {
         ClsInstitute.Save();
         Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.GetBaseException().Message);
     }
 }
Ejemplo n.º 2
0
        public FrmMain()
        {
            InitializeComponent();
            try
            {
                ClsInstitute.Retrieve();
                LblStudentDetails.Text = string.Format("{0} Student(s)\nTotal Balance: {1:C}",
                                                       ClsInstitute.StudentList.Count, ClsInstitute.TotalBalance());
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.GetBaseException().Message);
            }
        }
Ejemplo n.º 3
0
 private void BtnManageStudents_Click_1(object sender, EventArgs e)
 {
     _FrmStudentList.ShowDialog();
     LblStudentDetails.Text = string.Format("{0} Student(s)\nTotal Balance: {1:C}", ClsInstitute.StudentList.Count, ClsInstitute.TotalBalance());
 }