示例#1
0
 private void StartupGetContactDialog(AsyncTask task, object state)
 {
     task.DoFinalStep(
         delegate()
     {
         //Start get buddy dialog to get the contact name, user wants to contact with.
         GetBuddyDialog getcontactDialog = new GetBuddyDialog(this.CustomerSession, ApplicationConfiguration.GetBuddyConfiguration());
         getcontactDialog.Completed     += new EventHandler <DialogCompletedEventArgs>(this.GetContactDialogCompleted);
         getcontactDialog.Run();
     });
 }
示例#2
0
 private void StartGetContactDialog()
 {
     if (this.CustomerSession.IsTerminatingTerminated)
     {
         this.EndService(null);
         return;
     }
     try
     {
         //AStart get buddy dialog which gets the contact name the user wants to contact with
         GetBuddyDialog getcontactDialog = new GetBuddyDialog(CustomerSession, ApplicationConfiguration.GetBuddyConfiguration());
         getcontactDialog.Completed += new EventHandler <DialogCompletedEventArgs>(this.GetContactDialogCompleted);
         getcontactDialog.Run();
     }
     catch (InvalidOperationException exp)
     {
         this.EndService(exp);
     }
 }