Inheritance: System.Windows.Controls.UserControl, IMathView
示例#1
0
        public Converter(MathControl mathControl)
        {
            converters = new IConverter[]
            {
                new AreaConverter(),
                new UnitConverters.LengthConverter(),
                new MassConverter(),
                new PowerConverter(),
                new TemperatureConverter(),
                new TimeConverter(),
                new VolumeConverter()
            };
            this.mathControl = mathControl;

            InitializeComponent();

            convertersComboBox.ItemsSource = converters;
            SetUnits();
        }
示例#2
0
        public Converter(MathControl mathControl)
        {
            converters = new IConverter[]
            {
                new AreaConverter(),
                new UnitConverters.LengthConverter(),
                new MassConverter(),
                new PowerConverter(),
                new TemperatureConverter(),
                new TimeConverter(),
                new VolumeConverter()
            };
            this.mathControl = mathControl;

            InitializeComponent();

            convertersComboBox.ItemsSource = converters;
            SetUnits();
        }