⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 workflow1.xoml.cs

📁 WWF中的基本活动的简单示例,例如IfElseActivity、WhileActivity活动
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -