Search Results for

    Show / Hide Table of Contents

    Class Calculator

    Stack-based calculator engine that holds a list of operator/number tokens, applies digit, operator and memory commands, evaluates the expression with operator precedence, and can display a modal calculator dialog through ShowCalc(decimal, ref bool, bool).

    Inheritance
    object
    Calculator
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing.Forms
    Assembly: Reportman.Drawing.Forms.dll
    Syntax
    public class Calculator

    Constructors

    View Source

    Calculator()

    Declaration
    public Calculator()

    Methods

    View Source

    DoClearAll()

    Declaration
    public void DoClearAll()
    View Source

    DoClearCurrentToken()

    Declaration
    public void DoClearCurrentToken()
    View Source

    DoDecimal()

    Declaration
    public void DoDecimal()
    View Source

    DoDigit(int)

    Declaration
    public void DoDigit(int n)
    Parameters
    Type Name Description
    int n
    View Source

    DoEvaluate()

    Declaration
    public void DoEvaluate()
    View Source

    DoMemoryClear()

    Declaration
    public void DoMemoryClear()
    View Source

    DoMemoryRecall()

    Declaration
    public void DoMemoryRecall()
    View Source

    DoMemorySet()

    Declaration
    public void DoMemorySet()
    View Source

    DoNegative()

    Declaration
    public void DoNegative()
    View Source

    DoOneOver()

    Declaration
    public void DoOneOver()
    View Source

    DoOperator(TokenType)

    Declaration
    public void DoOperator(TokenCalc.TokenType type)
    Parameters
    Type Name Description
    TokenCalc.TokenType type
    View Source

    DoPercent()

    Declaration
    public void DoPercent()
    View Source

    Render()

    Declaration
    public string Render()
    Returns
    Type Description
    string
    View Source

    ShowCalc(decimal, ref bool, bool)

    Declaration
    public static decimal ShowCalc(decimal currentvalue, ref bool aceptado, bool IsPassword)
    Parameters
    Type Name Description
    decimal currentvalue
    bool aceptado
    bool IsPassword
    Returns
    Type Description
    decimal
    View Source

    ShowCalc(decimal, ref bool, bool, string, IWin32Window)

    Declaration
    public static decimal ShowCalc(decimal currentvalue, ref bool aceptado, bool IsPassword, string titulo, IWin32Window nwindow)
    Parameters
    Type Name Description
    decimal currentvalue
    bool aceptado
    bool IsPassword
    string titulo
    IWin32Window nwindow
    Returns
    Type Description
    decimal
    • View Source
    In this article
    Back to top Generated by DocFX