/[OhmsLawCalc]/trunk/OhmsLawCalc/UI/UIVoltageInput.cs
ViewVC logotype

Contents of /trunk/OhmsLawCalc/UI/UIVoltageInput.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations) (download)
Wed Jan 29 07:57:25 2014 UTC (6 years, 6 months ago) by william
File size: 1080 byte(s)

1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Drawing;
5 using System.Data;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9 using libOhmsLawCalc;
10
11 namespace OhmsLawCalc.UI
12 {
13 public partial class UIVoltageInput : UserControl, IResetInput, ICalc, ISetValue, IGetValue
14 {
15 public UIVoltageInput()
16 {
17 InitializeComponent();
18 }
19 #region IResetInput members
20 public void Reset()
21 {
22 circuitValue1.Reset();
23 }
24 #endregion
25 #region ICalc members
26 public OhmsLawValue GetValue(out OhmsLawValueType type)
27 {
28 return circuitValue1.GetValue(out type);
29 }
30 #endregion
31 #region ISetValue, IGetValue members
32 public void SetValue(OhmsLawValue value)
33 {
34 circuitValue1.SetValue(value);
35 }
36 public OhmsLawValue GetValue()
37 {
38 return circuitValue1.GetValue();
39 }
40 #endregion
41 }
42 }

  ViewVC Help
Powered by ViewVC 1.1.22