workflow1.xoml.cs

来自「WWF中的基本活动的简单示例,例如IfElseActivity、WhileAct」· CS 代码 · 共 61 行

CS
61
字号
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace WorkflowConsoleApplication1
{
	public partial class Workflow1 : SequentialWorkflowActivity
	{
        private bool _isFixed;

        public bool IsFixed
        {

            get { return _isFixed; }

            set { _isFixed = value; }

        }

        private void codeActivity1_ExecuteCode(object sender, EventArgs e)
        {
            Console.WriteLine("Is the bug fixed?");

            Char answer = Console.ReadKey().KeyChar;

            answer = Char.ToLower(answer);

            if (answer == 'y')
            {

                _isFixed = true;

            }

            else
            {

                Console.WriteLine();

                Console.WriteLine("Get back to work!");

                Console.WriteLine();

            }


        }


	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?