Beispiel #1
0
        protected override void Execute(CodeActivityContext context)
        {
            var caption = Header.Get((ActivityContext)context).ToString();
            var text    = Text.Get((ActivityContext)context).ToString();

            MessageBox.Show(text, caption);
            WorkflowExecutionLog.Write(this, caption + ": " + text);
            WorkflowExecutionLog.Write(this, string.Empty);
        }
Beispiel #2
0
        protected override void Execute(CodeActivityContext context)
        {
            var random       = new Random();
            var from         = From.Get((ActivityContext)context);
            var to           = To.Get((ActivityContext)context);
            var randomNumber = random.Next(from, to);

            Number.Set(context, randomNumber);

            WorkflowExecutionLog.Write(this, "Random number generated: " + randomNumber);
            WorkflowExecutionLog.Write(this, string.Empty);
        }
Beispiel #3
0
        protected override void Execute(CodeActivityContext context)
        {
            var text = Print.Get((ActivityContext)context).ToString();

            if (Line_translation)
            {
                WorkflowExecutionLog.Write(this, text);
            }
            else
            {
                WorkflowExecutionLog.Write(this, text);
            }

            WorkflowExecutionLog.Write(this, string.Empty);
        }
        protected override void Execute(CodeActivityContext context)
        {
            var inputIntForm = new InputIntForm();

            inputIntForm.Number  = Number.Get((ActivityContext)context);
            inputIntForm.Message = Inscription.Get((ActivityContext)context);
            string logOutput;

            var res = inputIntForm.ShowDialog();

            if (res == DialogResult.OK)
            {
                Number.Set(context, inputIntForm.Number);
                logOutput = inputIntForm.Message + ": " + inputIntForm.Number.ToString();
            }
            else
            {
                logOutput = "Number was not entered";
            }
            WorkflowExecutionLog.Write(this, logOutput);
            WorkflowExecutionLog.Write(this, string.Empty);
        }
Beispiel #5
0
 protected override void Execute(CodeActivityContext context)
 {
     MessageBox.Show(Text, Header);
     WorkflowExecutionLog.Write(this, Header + ": " + Text);
     WorkflowExecutionLog.Write(this, string.Empty);
 }