Ejemplo n.º 1
0
        private void SaveEmailAdressTask_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            SaveEmailAddressTask saveEmailAddressTask = new SaveEmailAddressTask();

            saveEmailAddressTask.Completed += new EventHandler <TaskEventArgs>(saveEmailAddressTask_Completed);
            saveEmailAddressTask.Email      = "*****@*****.**";
            MessageBox.Show("Saving this email: " + saveEmailAddressTask.Email);
            saveEmailAddressTask.Show();
        }
        private void SecondListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch ((e.AddedItems[0] as ListBoxItem).Name)
            {
            case "iCameraCaptureTask":
                MessageBox.Show("See recipe 7-1 for CameraCaptureTask chooser explanation.");
                break;

            case "iPhotoChooserTask":
                MessageBox.Show("See recipe 7-2 for PhotoChooserTask chooser explanation.");
                break;

            case "iEmailAddressChooserTask":
                EmailAddressChooserTask eact = new EmailAddressChooserTask();
                eact.Completed += new EventHandler <EmailResult>(EmailAddressChooserTask_Completed);
                eact.Show();
                break;

            case "iPhoneNumberChooserTask":
                PhoneNumberChooserTask pnct = new PhoneNumberChooserTask();
                pnct.Completed += new EventHandler <PhoneNumberResult>(PhoneNumberChooserTask_Completed);
                pnct.Show();
                break;

            case "iSaveEmailAddressTask":
                SaveEmailAddressTask seat = new SaveEmailAddressTask();
                seat.Completed += new EventHandler <TaskEventArgs>(SaveEmailAddressTask_Completed);
                seat.Email      = "*****@*****.**";
                seat.Show();
                break;

            case "iSavePhoneNumberTask":
                SavePhoneNumberTask spnt = new SavePhoneNumberTask();
                spnt.PhoneNumber = "55512345678";
                spnt.Completed  += new EventHandler <TaskEventArgs>(SavePhoneNumberTask_Completed);
                spnt.Show();
                break;
            }
        }
Ejemplo n.º 3
0
 private void SaveEmail_Click(object sender, RoutedEventArgs e)
 {
     saveEmailAddressTask.Email = (string)supportEmailLink.Content;
     saveEmailAddressTask.Show();
 }
Ejemplo n.º 4
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     sea.Email = txtEmail.Text;
     sea.Show();
 }
 private void btnsaveEmail_Click(object sender, RoutedEventArgs e)
 {
     SaveEmailAddressTask eaddr = new SaveEmailAddressTask();
     eaddr.Email = "*****@*****.**";
     eaddr.Completed += (s, evt) =>
     {
         if (evt.TaskResult == TaskResult.OK)
             MessageBox.Show("Email address saved");
     };
     eaddr.Show();
 }
Ejemplo n.º 6
0
 private void btnSaveEmailAddress_Click(object sender, RoutedEventArgs e)
 {
     SaveEmailAddressTask task = new SaveEmailAddressTask();
     task.Email = "*****@*****.**";
     task.Show();
 }
Ejemplo n.º 7
0
 private void SaveEmailAddress_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     seat.Email = "*****@*****.**";
     seat.Show();
 }