Fix code snippets in .NET Attached Devices guide 41/154041/1
authorEditor Lionbridge <TizenEditor.SEL@lionbridge.com>
Thu, 5 Oct 2017 11:32:03 +0000 (14:32 +0300)
committerEditor Lionbridge <TizenEditor.SEL@lionbridge.com>
Thu, 5 Oct 2017 11:32:03 +0000 (14:32 +0300)
Change-Id: Ie31aaa67dcf282b6a82cdd85dfd1311ef634c28d

org.tizen.guides/html/dotnet/attached_devices.htm

index 4985980..a382cf6 100755 (executable)
@@ -121,7 +121,7 @@ charging = Battery.IsCharging;
                <p>The property contains the device battery level as a value of the <a href="https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1System.html#ae27f4a8d7a61d29a49a265c337116df8">Tizen.System.BatteryLevelStatus</a> enumeration.</p>
 
 <pre class="prettyprint">
-var status;
+BatteryLevelStatus status;
 status = Battery.Level;
 </pre>
                </li>
@@ -144,8 +144,7 @@ num = Display.NumberOfDisplays;
 <pre class="prettyprint">
 Display dis = Display.Displays[0];
 
-int curBrightness = dis.Brightness;
-dis.Brightness = dis.MaxBrightness;
+int maxBrightness = dis.MaxBrightness;
 </pre>
        </li>
 
@@ -163,7 +162,7 @@ dis.Brightness = 30;
        <li>Get and set the display state with the <code>State</code> property.
        <p>The property contains the display state as a value of the <a href="https://developer.tizen.org/dev-guide/csapi/namespaceTizen_1_1System.html#a04b41846384e5a4eec93b3439af7f289">Tizen.System.DisplayState</a> enumeration.</p>
 <pre class="prettyprint">
-var state;
+DisplayState state;
 state = Display.State;
 </pre></li>
                </ul>
@@ -197,7 +196,7 @@ vib.Stop();
 <ol>
 <li>Determine whether IR is available on the device using the <code>IsAvailable</code> property of the <a href="https://developer.tizen.org/dev-guide/csapi/classTizen_1_1System_1_1IR.html">Tizen.System.IR</a> class:
 <pre class="prettyprint">
-var test
+bool test;
 test = IR.IsAvailable;
 </pre>
 </li>
@@ -219,7 +218,7 @@ IR.Transmit(10, pattern);
 <ul>
 <li>Get the maximum brightness value of a camera flash LED with the <code>MaxBrightness</code> property of the <a href="https://developer.tizen.org/dev-guide/csapi/classTizen_1_1System_1_1Led.html">Tizen.System.Led</a> class:
 <pre class="prettyprint">
-var test
+int test;
 test = Led.MaxBrightness;
 </pre>
 </li>
@@ -227,7 +226,7 @@ test = Led.MaxBrightness;
 <li>Get and set the current brightness value of a camera flash LED with the <code>Brightness</code> property:
 
 <pre class="prettyprint">
-var test
+int test;
 test = Led.Brightness;
 
 Led.Brightness = 45;