示例#1
0
        /// <summary>
        /// Activity heavy lifting.
        /// </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            //Get Argument Values
            string message = Message.Get(context) ?? String.Empty;
            string caption = Caption.Get(context) ?? String.Empty;
            XlateMessageBoxDefaultButtons defaultButtons = DefaultButtons.Get(context);

            //Heavy Lifting
            YesNoCancelDialogResult result = XlateMessageBox.YesNoCancel(message, caption, defaultButtons);

            DialogResult.Set(context, result);
        }
示例#2
0
        private void ShowDialog(object obj)
        {
            CodeActivityContext context = (CodeActivityContext)obj;

            //Get Argument Values
            string message = Message.Get(context) ?? String.Empty;
            string caption = Caption.Get(context) ?? String.Empty;
            XlateMessageBoxDefaultButtons defaultButtons = DefaultButtons.Get(context);

            bool result = XlateMessageBox.YesNoMessage(message, caption, defaultButtons);

            DialogResult.Set(context, result);
        }