Example #1
0
        private void SaveButton_Click(object sender, RoutedEventArgs e)
        {
            CB.CreateSupplier();
            GrainSupplier UCGS = new GrainSupplier(GridSupplierAdm, CB);

            GridSupplierAdm.Children.Clear();
            GridSupplierAdm.Children.Add(UCGS);
        }
Example #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     CB.classUser = CL.Login(this.user.Text.ToString(), this.pw.Text.ToString());
     if (CB.classUser.UserId == 0)
     {
         MessageBox.Show("Du har indtastet forkert CprNr eller Password");
         this.pw.Clear();
     }
     else
     {
         GrainSupplier UCGS = new GrainSupplier(LoginGrid, CB);
         LoginGrid.Children.Clear();
         LoginGrid.Children.Add(UCGS);
     }
 }