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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/OhmsLawCalc/UI/UICurrentInput.cs	2014/01/29 07:31:28	21
+++ trunk/OhmsLawCalc/UI/UICurrentInput.cs	2014/01/29 07:57:25	22
@@ -10,7 +10,7 @@
 
 namespace OhmsLawCalc.UI
 {
-    public partial class UICurrentInput : UserControl, IResetInput, ICalc
+    public partial class UICurrentInput : UserControl, IResetInput, ICalc, ISetValue, IGetValue
     {
         public UICurrentInput()
         {
@@ -22,8 +22,17 @@
             circuitValue1.Reset();
         }
         #endregion
-
         #region ICalc members
+        public OhmsLawValue GetValue(out OhmsLawValueType type)
+        {
+            return circuitValue1.GetValue(out type);
+        }
+        #endregion
+        #region ISetValue, IGetValue members
+        public void SetValue(OhmsLawValue value)
+        {
+            circuitValue1.SetValue(value);
+        }
         public OhmsLawValue GetValue()
         {
             return circuitValue1.GetValue();

 

  ViewVC Help
Powered by ViewVC 1.1.22