Esempio n. 1
0
        private void ShowQuestionOnNativeThread(object sender, UserQuestionEventArgs e)
        {
            var result = MessageBox.Show(e.UserQuestion.Message, e.UserQuestion.Label, e.UserQuestion.Buttons, e.UserQuestion.Icon);

            if (result == DialogResult.OK)
            {
                e.UserQuestion.OkResponse.Invoke();
            }
            else
            {
                e.UserQuestion.CancelResponse.Invoke();
            }
        }
Esempio n. 2
0
 private void InteractionServiceUserQuestionReceived(object sender, UserQuestionEventArgs e)
 {
     Invoke(new NativeThreadFunctinUserQuestion(ShowQuestionOnNativeThread), this, e);
 }