/// <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); }
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); }