C# and WPF tutorial files

This commit is contained in:
Unknown
2017-05-29 21:01:07 +01:00
parent dfdd754362
commit 1cb838df3a
107 changed files with 5760 additions and 0 deletions

View File

@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BasicCalculator
{
/// <summary>
/// Holds information about a single calculator operation
/// </summary>
public class Operation
{
#region Public Properties
/// <summary>
/// The left side of the operation
/// </summary>
public string LeftSide { get; set; }
/// <summary>
/// The right side of the operation
/// </summary>
public string RightSide { get; set; }
/// <summary>
/// The type of operation to perform
/// </summary>
public OperationType OperationType { get; set; }
/// <summary>
/// The inner operation to be performed initially before this operation
/// </summary>
public Operation InnerOperation { get; set; }
#endregion
#region Constructor
/// <summary>
/// Default constructor
/// </summary>
public Operation()
{
// Create empty strings instead of having nulls
this.LeftSide = string.Empty;
this.RightSide = string.Empty;
}
#endregion
}
}