예제 #1
0
 public static MessageBoxResult ShowOK(string messageText, string messageQuestion)
 {
     msgBox = new ExolutioYesNoBox(true, false, false, false);
     msgBox.messageText.Text     = messageText;
     msgBox.messageQuestion.Text = messageQuestion;
     msgBox.ShowDialog();
     return(msgBox.result);
 }
예제 #2
0
        public static MessageBoxResult ShowOKCancel(string messageText, string messageQuestion)
#endif
        {
            msgBox = new ExolutioYesNoBox(true, true, false, false, host);
            msgBox.messageText.Text     = messageText;
            msgBox.messageQuestion.Text = messageQuestion;
#if SILVERLIGHT
            host.Add(msgBox);
            msgBox.ShowModal();
#else
            msgBox.ShowDialog();
#endif
            return(msgBox.result);
        }