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

Annotation of /trunk/OhmsLawCalc/UI/UICurrentInput.cs

Parent Directory Parent Directory | Revision Log Revision Log


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

1 william 19 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 william 20 using libOhmsLawCalc;
10 william 19
11     namespace OhmsLawCalc.UI
12     {
13 william 22 public partial class UICurrentInput : UserControl, IResetInput, ICalc, ISetValue, IGetValue
14 william 19 {
15     public UICurrentInput()
16     {
17     InitializeComponent();
18     }
19 william 20 #region IResetInput members
20     public void Reset()
21     {
22     circuitValue1.Reset();
23     }
24     #endregion
25     #region ICalc members
26 william 22 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 william 20 public OhmsLawValue GetValue()
37     {
38     return circuitValue1.GetValue();
39     }
40     #endregion
41 william 19 }
42     }

  ViewVC Help
Powered by ViewVC 1.1.22