//Method initiated when user makes desired order. private void Btn_Ok(object sender, RoutedEventArgs e) { uvm.CreateOrder(CurrentUser); //Validation added if user inserts invalid values, so that he can correct invalid inputs. if (OrderMade) { OrderMade = true; LoginScreen login = new LoginScreen(); login.Show(); this.Close(); } }