Ejemplo n.º 1
0
 public Overview(bool jobBoard = false)
 {
     InitializeComponent();
     technicianService = TechnicianService.GetInstance();
     if (jobBoard)
     {
         LoadAvailableRepairs();
     }
     else
     {
         LoadRepairs();
     }
 }
Ejemplo n.º 2
0
        private void loginBtn_Click(object sender, RoutedEventArgs e)
        {
            UserView u = new UserView();

            u.Username  = usernameTbox.Text.ToString();
            u.Password  = passwordBox.Password.ToString();
            u.isManager = false;

            if (TechnicianService.GetInstance().ValidateUser(u))
            {
                validated    = true;
                DialogResult = true;
                Close();
            }
        }