Пример #1
0
        /// <summary>
        /// Opens up the main menu when form is closed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FoundForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            // Opens up the main menu
            LostOrFound fm = new LostOrFound();

            fm.Show();
        }
Пример #2
0
 /// <summary>
 /// Logs the user in if the username and password are entered correctly and opens up the main menu form
 /// </summary>
 public void log()
 {
     if (!Login(_view.username, _view.password))
     {
         MessageBox.Show("The Username or Password is incorrect");
     }
     else
     {
         LostOrFound fm = new LostOrFound();
         fm.Show();
         fm.WelcomeMessage(_view.username);
         UpdateData();
     }
 }