예제 #1
0
 private void btnBack2(object sender, RoutedEventArgs e)
   {
     
       expierence newWindow = new expierence(personalInfoObject);
       newWindow.Show();
       this.Close();
   }
예제 #2
0
        private  void btnNext(object sender, RoutedEventArgs e)
        {
            
            
            if (personalInfoObject.Name == null  || ( personalInfoObject.Name.All(c => Char.IsLetter(c))==false)) //validation for name of user using Linq
            {
                MessageBox.Show("Please enter a valid Name");
            }
            else
            {
                MessageBox.Show("Your free Tim Hortons voucher code is 123****** ");
                expierence newWindow = new expierence(personalInfoObject);
                newWindow.Show();

                //await db.InsertAsync(pi);
                this.Close();
            }
        }