ConverterDisplay - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: UserControlClassLibrary
Extends: UserControl
Implements: IConverterDisplay

Description: Converter output display.

Constructors Usage
ConverterDisplay() Initializes an instance of ConverterDisplay class
Events Usage
OnUnitChange(object, EventArgs) when measuring unit in drop-down list is changed
Properties Usage
InputUnit<string> current measuring unit to be converted
InputValue<string> value in current measuring unit
MainOutputUnit<string> target measuring unit for conversion
MainOutputValue<string> value after conversion
ExtraOutputLabels<Label[]> label control holding extra conversion results
Methods Usage
Clear() clear all displayed content
PopulateOptions(string[]) populate drop-down list with all supported measuring units
DisplayInput(string, IFormatter) display user input
DisplayMainOutput(string, IFormatter) display conversion result
DisplayExtraOutputs(Tuple<string, string>[], IFormatter) display additional conversion results if applicable
⚠️ **GitHub.com Fallback** ⚠️