Click here to Skip to main content
13,000,829 members (44,042 online)
Click here to Skip to main content

Stats

42.4K views
2K downloads
17 bookmarked
Posted 1 Oct 2010

Expression Control for TFS Work Items

, 5 Oct 2010
Custom control for TFS Work Items that shows the result of calculating an expression based on the work item fields contents
using System;

namespace Evaluant.Calculator.Domain
{
	public class UnaryExpression : LogicalExpression
    {
		public UnaryExpression(UnaryExpressionType type, LogicalExpression expression)
		{
            this.type = type;
            this.expression = expression;
		}

		private LogicalExpression expression;
		public LogicalExpression Expression
		{
			get { return expression; }
			set { expression = value; }
		}

		private UnaryExpressionType type;
		public UnaryExpressionType Type
		{
			get { return type; }
			set { type = value; }
		}

        public override void Accept(LogicalExpressionVisitor visitor)
        {
            visitor.Visit(this);
        }
	}

	public enum UnaryExpressionType
	{
		Not,
        Negate
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

konamiman.MSX
Software Developer SunHotels
Spain Spain
Under the secret identity of a C# programmer, a freaky guy who loves MSX computers and japanese culture is hidden. Beware!

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 6 Oct 2010
Article Copyright 2010 by konamiman.MSX
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid