Exemplo n.º 1
0
 public void ShowQuestion(string message, IEnumerable<string> answers, IUserInquiryAccepter accepter)
 {
     View.UserDialog d = new View.UserDialog(message, answers, accepter);
     d.Completed += new VoidObjectStringStringDelegate(d_Completed);
     d.Owner = window;
     d.Show();
 }
Exemplo n.º 2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     UserDialog u = new UserDialog("Do you want to continue with next round?", new string[] { "Ok", "Cancel" }, null);
     u.Owner = this;
     u.Show();
     u.Completed += new VoidObjectStringStringDelegate(u_Completed);
 }
Exemplo n.º 3
0
 public void ShowMessage(string message)
 {
     View.UserDialog d = new View.UserDialog(message, new string[] {"Ok"}, null);
     d.Completed += new VoidObjectStringStringDelegate(showMessage_Completed);
     d.Owner = window;
     lastDialog = d;
     d.Show();
 }