Remove NET45 project and Clean up code
authorWonYoung Choi <wy80.choi@samsung.com>
Mon, 6 Mar 2017 06:41:54 +0000 (15:41 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Mon, 6 Mar 2017 06:41:54 +0000 (15:41 +0900)
Change-Id: I7279e95988690dd859c76b07cd6aae9b85601898

42 files changed:
packaging/elm-sharp.spec
src/ElmSharp/ElmSharp.Net45.csproj [deleted file]
src/ElmSharp/ElmSharp.Net45.project.json [deleted file]
src/ElmSharp/ElmSharp.nuspec
src/ElmSharp/ElmSharp/Background.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Button.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Calendar.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Check.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Color.cs
src/ElmSharp/ElmSharp/ColorSelector.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/ColorSelectorItem.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Container.cs
src/ElmSharp/ElmSharp/ContextPopup.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/DateTimeSelector.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/EcoreAnimator.cs
src/ElmSharp/ElmSharp/EdjeObject.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs
src/ElmSharp/ElmSharp/EvasObject.cs
src/ElmSharp/ElmSharp/FloatingButton.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/GenGrid.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/GenList.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/GestureLayer.cs
src/ElmSharp/ElmSharp/Icon.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Image.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Index.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Layout.cs
src/ElmSharp/ElmSharp/List.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Naviframe.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Panel.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Panes.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Polygon.cs
src/ElmSharp/ElmSharp/Popup.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/ProgressBar.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Radio.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Scroller.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Slider.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Spinner.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Table.cs [changed mode: 0755->0644]
src/ElmSharp/ElmSharp/Toolbar.cs [changed mode: 0755->0644]
src/ElmSharp/Interop/Interop.Elementary.Win.cs
test/ElmSharp.Test/ElmSharp.Test.project.json
test/ElmSharp.Test/TC/ScreenInformationTest.cs

index 2adb00e..f84fa0b 100644 (file)
@@ -1,4 +1,4 @@
-%define DEV_VERSION beta-011
+%define DEV_VERSION beta-012
 
 Name:       elm-sharp
 Summary:    C# Binding for Elementary
diff --git a/src/ElmSharp/ElmSharp.Net45.csproj b/src/ElmSharp/ElmSharp.Net45.csproj
deleted file mode 100755 (executable)
index d210cf3..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{657E0754-FAF0-42B9-B9F5-45868826758E}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>ElmSharp</RootNamespace>
-    <AssemblyName>ElmSharp</AssemblyName>
-    <FileAlignment>512</FileAlignment>
-    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Debug\Net45\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\Net45\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-  </PropertyGroup>
-  <PropertyGroup>
-    <SignAssembly>true</SignAssembly>
-  </PropertyGroup>
-  <PropertyGroup>
-    <AssemblyOriginatorKeyFile>ElmSharp.snk</AssemblyOriginatorKeyFile>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Xml.Linq" />
-    <Reference Include="System.Data.DataSetExtensions" />
-    <Reference Include="Microsoft.CSharp" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Net.Http" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="ElmSharp\Background.cs" />
-    <Compile Include="ElmSharp\Box.cs" />
-    <Compile Include="ElmSharp\Button.cs" />
-    <Compile Include="ElmSharp\Calendar.cs" />
-    <Compile Include="ElmSharp\Check.cs" />
-    <Compile Include="ElmSharp\CheckStateChangedEventArgs.cs" />
-    <Compile Include="ElmSharp\Color.cs" />
-    <Compile Include="ElmSharp\ColorChangedEventArgs.cs" />
-    <Compile Include="ElmSharp\ColorSelector.cs" />
-    <Compile Include="ElmSharp\Conformant.cs" />
-    <Compile Include="ElmSharp\Container.cs" />
-    <Compile Include="ElmSharp\ContextPopup.cs" />
-    <Compile Include="ElmSharp\ColorSelectorItem.cs" />
-    <Compile Include="ElmSharp\ContextPopupItem.cs" />
-    <Compile Include="ElmSharp\DateChangedEventArgs.cs" />
-    <Compile Include="ElmSharp\DateTimeSelector.cs" />
-    <Compile Include="ElmSharp\DisplayedMonthChangedEventArgs.cs" />
-    <Compile Include="ElmSharp\EcoreAnimator.cs" />
-    <Compile Include="ElmSharp\EcoreMainloop.cs" />
-    <Compile Include="ElmSharp\EcoreSynchronizationContext.cs" />
-    <Compile Include="ElmSharp\EdjeObject.cs" />
-    <Compile Include="ElmSharp\ElmScrollConfig.cs" />
-    <Compile Include="ElmSharp\Elementary.cs" />
-    <Compile Include="ElmSharp\Entry.cs" />
-    <Compile Include="ElmSharp\EvasKeyEventArgs.cs" />
-    <Compile Include="ElmSharp\EvasMap.cs" />
-    <Compile Include="ElmSharp\EvasObject.cs" />
-    <Compile Include="ElmSharp\EvasObjectEvent.cs" />
-    <Compile Include="ElmSharp\FlipSelector.cs" />
-    <Compile Include="ElmSharp\FlipSelectorItem.cs" />
-    <Compile Include="ElmSharp\FloatingButton.cs" />
-    <Compile Include="ElmSharp\GenGrid.cs" />
-    <Compile Include="ElmSharp\GenGridItem.cs" />
-    <Compile Include="ElmSharp\GenItem.cs" />
-    <Compile Include="ElmSharp\GenItemClass.cs" />
-    <Compile Include="ElmSharp\GenList.cs" />
-    <Compile Include="ElmSharp\GenListItem.cs" />
-    <Compile Include="ElmSharp\GestureLayer.cs" />
-    <Compile Include="ElmSharp\Icon.cs" />
-    <Compile Include="ElmSharp\Image.cs" />
-    <Compile Include="ElmSharp\Index.cs" />
-    <Compile Include="ElmSharp\IndexItem.cs" />
-    <Compile Include="ElmSharp\ItemObject.cs" />
-    <Compile Include="ElmSharp\Label.cs" />
-    <Compile Include="ElmSharp\Layout.cs" />
-    <Compile Include="ElmSharp\List.cs" />
-    <Compile Include="ElmSharp\ListItem.cs" />
-    <Compile Include="ElmSharp\Naviframe.cs" />
-    <Compile Include="ElmSharp\NaviItem.cs" />
-    <Compile Include="ElmSharp\Panel.cs" />
-    <Compile Include="ElmSharp\Panes.cs" />
-    <Compile Include="ElmSharp\Point.cs" />
-    <Compile Include="ElmSharp\Point3D.cs" />
-    <Compile Include="ElmSharp\Polygon.cs" />
-    <Compile Include="ElmSharp\Popup.cs" />
-    <Compile Include="ElmSharp\PopupItem.cs" />
-    <Compile Include="ElmSharp\ProgressBar.cs" />
-    <Compile Include="ElmSharp\Radio.cs" />
-    <Compile Include="ElmSharp\Rect.cs" />
-    <Compile Include="ElmSharp\Rectangle.cs" />
-    <Compile Include="ElmSharp\Scroller.cs" />
-    <Compile Include="ElmSharp\Size.cs" />
-    <Compile Include="ElmSharp\Slider.cs" />
-    <Compile Include="ElmSharp\SmartEvent.cs" />
-    <Compile Include="ElmSharp\Spinner.cs" />
-    <Compile Include="ElmSharp\Table.cs" />
-    <Compile Include="ElmSharp\Toolbar.cs" />
-    <Compile Include="ElmSharp\ToolbarItem.cs" />
-    <Compile Include="ElmSharp\Widget.cs" />
-    <Compile Include="ElmSharp\Window.cs" />
-    <Compile Include="ElmSharp\WrapType.cs" />
-    <Compile Include="Interop\Interop.Eina.cs" />
-    <Compile Include="Interop\Interop.Elementary.FlipSelector.cs" />
-    <Compile Include="Interop\Interop.Eo.cs" />
-    <Compile Include="Interop\Interop.Ecore.cs" />
-    <Compile Include="Interop\Interop.Elementary.Bg.cs" />
-    <Compile Include="Interop\Interop.Elementary.Box.cs" />
-    <Compile Include="Interop\Interop.Elementary.Button.cs" />
-    <Compile Include="Interop\Interop.Elementary.CalendarView.cs" />
-    <Compile Include="Interop\Interop.Elementary.ColorPicker.cs" />
-    <Compile Include="Interop\Interop.Elementary.cs" />
-    <Compile Include="Interop\Interop.Elementary.CtxPopup.cs" />
-    <Compile Include="Interop\Interop.Elementary.DateTimePicker.cs" />
-    <Compile Include="Interop\Interop.Elementary.Entry.cs" />
-    <Compile Include="Interop\Interop.Elementary.FloatingButton.cs" />
-    <Compile Include="Interop\Interop.Elementary.GenGridView.cs" />
-    <Compile Include="Interop\Interop.Elementary.GenListView.cs" />
-    <Compile Include="Interop\Interop.Elementary.GestureLayer.cs" />
-    <Compile Include="Interop\Interop.Elementary.Image.cs" />
-    <Compile Include="Interop\Interop.Elementary.Index.cs" />
-    <Compile Include="Interop\Interop.Elementary.Label.cs" />
-    <Compile Include="Interop\Interop.Elementary.List.cs" />
-    <Compile Include="Interop\Interop.Elementary.Naviframe.cs" />
-    <Compile Include="Interop\Interop.Elementary.Panel.cs" />
-    <Compile Include="Interop\Interop.Elementary.Panes.cs" />
-    <Compile Include="Interop\Interop.Elementary.Popup.cs" />
-    <Compile Include="Interop\Interop.Elementary.ProgressBar.cs" />
-    <Compile Include="Interop\Interop.Elementary.ScrollView.cs" />
-    <Compile Include="Interop\Interop.Elementary.Slider.cs" />
-    <Compile Include="Interop\Interop.Elementary.Spinner.cs" />
-    <Compile Include="Interop\Interop.Elementary.Table.cs" />
-    <Compile Include="Interop\Interop.Elementary.Toolbar.cs" />
-    <Compile Include="Interop\Interop.Elementary.Win.cs" />
-    <Compile Include="Interop\Interop.Evas.cs" />
-    <Compile Include="Interop\Interop.Evas.Image.cs" />
-    <Compile Include="Interop\Interop.Libc.cs" />
-    <Compile Include="Interop\Interop.Libraries.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="ElmSharp.Net45.project.json" />
-    <None Include="ElmSharp.nuspec" />
-    <None Include="ElmSharp.snk" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>
\ No newline at end of file
diff --git a/src/ElmSharp/ElmSharp.Net45.project.json b/src/ElmSharp/ElmSharp.Net45.project.json
deleted file mode 100644 (file)
index 5e1948a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-  "frameworks": {
-    "net45": {}
-  },
-  "runtimes": {
-    "win": {}
-  }
-}
index 3a0a615..789e195 100644 (file)
@@ -13,6 +13,5 @@
        </metadata>
        <files>
                <file src="bin/$Configuration$/ElmSharp.dll" target="lib/netstandard1.3" />
-               <file src="bin/$Configuration$/Net45/ElmSharp.dll" target="lib/net45" />
        </files>
 </package>
old mode 100755 (executable)
new mode 100644 (file)
index 5d6b023..bb25d3b
@@ -43,7 +43,7 @@ namespace ElmSharp
             set
             {
                 var swallowContent = GetPartContent("elm.swallow.rectangle");
-                if(swallowContent == IntPtr.Zero)
+                if (swallowContent == IntPtr.Zero)
                 {
                     Interop.Elementary.elm_bg_color_set(RealHandle, value.R, value.G, value.B);
                     swallowContent = GetPartContent("elm.swallow.rectangle");
@@ -68,11 +68,11 @@ namespace ElmSharp
         {
             get
             {
-                return (BackgroundOptions) Interop.Elementary.elm_bg_option_get(RealHandle);
+                return (BackgroundOptions)Interop.Elementary.elm_bg_option_get(RealHandle);
             }
             set
             {
-                Interop.Elementary.elm_bg_option_set(RealHandle, (Interop.Elementary.BackgroundOptions) value);
+                Interop.Elementary.elm_bg_option_set(RealHandle, (Interop.Elementary.BackgroundOptions)value);
             }
         }
 
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index f1730a3..7b3ef17 100644 (file)
@@ -68,7 +68,7 @@ namespace ElmSharp
         {
         }
 
-        public Color(int r, int g, int b, int a) : this(r,g,b,a, Mode.Rgb)
+        public Color(int r, int g, int b, int a) : this(r, g, b, a, Mode.Rgb)
         {
         }
 
@@ -106,10 +106,26 @@ namespace ElmSharp
             return base.Equals(obj);
         }
 
+        public static bool operator ==(Color a, Color b)
+        {
+            if (ReferenceEquals(a, b))
+                return true;
+
+            if ((object)a == null || (object)b == null)
+                return false;
+
+            return EqualsInner(a, b);
+        }
+
+        public static bool operator !=(Color a, Color b)
+        {
+            return !(a == b);
+        }
+
         static bool EqualsInner(Color color1, Color color2)
         {
             if (color1._mode == Mode.Default && color2._mode == Mode.Default)
-                               return true;
+                return true;
             return color1._r == color2._r && color1._g == color2._g && color1._b == color2._b && color1._a == color2._a;
         }
 
old mode 100755 (executable)
new mode 100644 (file)
index 137aa41..6036ea9
@@ -81,7 +81,7 @@ namespace ElmSharp
         {
             get
             {
-                return (ColorSelectorMode) Interop.Elementary.elm_colorselector_mode_get(Handle);
+                return (ColorSelectorMode)Interop.Elementary.elm_colorselector_mode_get(Handle);
             }
             set
             {
old mode 100755 (executable)
new mode 100644 (file)
index 2842629..b9c4b08 100644 (file)
@@ -27,11 +27,11 @@ namespace ElmSharp
         {
         }
 
-       public override Color BackgroundColor
+        public override Color BackgroundColor
         {
             set
             {
-                if(value.IsDefault)
+                if (value.IsDefault)
                 {
                     SetPartColor("bg", Color.Transparent);
                 }
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 05ab8ed..200155f 100644 (file)
@@ -65,7 +65,7 @@ namespace ElmSharp
             int task_id = (int)userData;
             Func<bool> userAction = null;
             _taskMap.TryGetValue(task_id, out userAction);
-            return (userAction != null)?userAction():false;
+            return (userAction != null) ? userAction() : false;
         }
 
     }
old mode 100755 (executable)
new mode 100644 (file)
index 4dc7e28..db302c7
@@ -63,7 +63,8 @@ namespace ElmSharp
 
         public string Name { get { return _part; } }
 
-        public string Text {
+        public string Text
+        {
             get
             {
                 return Interop.Elementary.edje_object_part_text_get(_edjeHandle, _part);
index 11964a3..1ecc70b 100644 (file)
@@ -29,11 +29,11 @@ namespace ElmSharp
 
         static public EvasKeyEventArgs Create(IntPtr data, IntPtr obj, IntPtr info)
         {
-            EvasEventKeyDown evt = (EvasEventKeyDown)Marshal.PtrToStructure(info, typeof(EvasEventKeyDown));
+            var evt = Marshal.PtrToStructure<EvasEventKeyDown>(info);
             return new EvasKeyEventArgs() { KeyName = evt.keyname };
         }
 
-        [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+        [StructLayout(LayoutKind.Sequential)]
         struct EvasEventKeyDown
         {
             public string keyname;
index d756b97..732370b 100644 (file)
@@ -353,7 +353,7 @@ namespace ElmSharp
 
         public void Realize(EvasObject parent)
         {
-            if(!IsRealized)
+            if (!IsRealized)
             {
                 Parent = parent;
                 Handle = CreateHandle(parent);
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 3e0bfd1..e673e59 100644 (file)
@@ -368,20 +368,20 @@ namespace ElmSharp
                 case GestureType.LongTap:
                 case GestureType.DoubleTap:
                 case GestureType.TripleTap:
-                    action(Marshal.PtrToStructure(event_info, typeof(TapData)));
+                    action(Marshal.PtrToStructure<TapData>(event_info));
                     break;
                 case GestureType.Momentum:
-                    action(Marshal.PtrToStructure(event_info, typeof(MomentumData)));
+                    action(Marshal.PtrToStructure<MomentumData>(event_info));
                     break;
                 case GestureType.Line:
                 case GestureType.Flick:
-                    action(Marshal.PtrToStructure(event_info, typeof(LineData)));
+                    action(Marshal.PtrToStructure<LineData>(event_info));
                     break;
                 case GestureType.Zoom:
-                    action(Marshal.PtrToStructure(event_info, typeof(ZoomData)));
+                    action(Marshal.PtrToStructure<ZoomData>(event_info));
                     break;
                 case GestureType.Rotate:
-                    action(Marshal.PtrToStructure(event_info, typeof(RotateData)));
+                    action(Marshal.PtrToStructure<RotateData>(event_info));
                     break;
             }
         }
@@ -401,7 +401,7 @@ namespace ElmSharp
             /// </summary>
             public Int32 Y;
 
-            #pragma warning disable 3003
+#pragma warning disable 3003
             /// <summary>
             /// The number of fingers tapped.
             /// </summary>
@@ -411,7 +411,7 @@ namespace ElmSharp
             /// The timestamp.
             /// </summary>
             public UInt32 Timestamp;
-            #pragma warning restore 3003
+#pragma warning restore 3003
         }
 
         [StructLayout(LayoutKind.Sequential)]
@@ -437,7 +437,7 @@ namespace ElmSharp
             /// </summary>
             public Int32 Y2;
 
-            #pragma warning disable 3003
+#pragma warning disable 3003
             /// <summary>
             /// Timestamp of start of final x-swipe.
             /// </summary>
@@ -462,7 +462,7 @@ namespace ElmSharp
             /// Number of fingers.
             /// </summary>
             public UInt32 FingersCount;
-            #pragma warning restore 3003
+#pragma warning restore 3003
         }
 
         [StructLayout(LayoutKind.Sequential)]
@@ -488,7 +488,7 @@ namespace ElmSharp
             /// </summary>
             public Int32 Y2;
 
-            #pragma warning disable 3003
+#pragma warning disable 3003
             /// <summary>
             /// Timestamp of start of final x-swipe.
             /// </summary>
@@ -513,7 +513,7 @@ namespace ElmSharp
             /// Number of fingers.
             /// </summary>
             public UInt32 FingersCount;
-            #pragma warning restore 3003
+#pragma warning restore 3003
 
             /// <summary>
             /// Angle (direction) of lines.
@@ -590,20 +590,24 @@ namespace ElmSharp
         {
             public static double DefaultLongTapTimeout
             {
-                get {
+                get
+                {
                     return Interop.Elementary.elm_config_glayer_long_tap_start_timeout_get();
                 }
-                set {
+                set
+                {
                     Interop.Elementary.elm_config_glayer_long_tap_start_timeout_set(value);
                 }
             }
 
             public static double DefaultDoubleTapTimeout
             {
-                get {
+                get
+                {
                     return Interop.Elementary.elm_config_glayer_double_tap_timeout_get();
                 }
-                set {
+                set
+                {
                     Interop.Elementary.elm_config_glayer_double_tap_timeout_set(value);
                 }
             }
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 4717adb..828334d 100644 (file)
@@ -28,7 +28,8 @@ namespace ElmSharp
         public Layout(EvasObject parent) : base(parent)
         {
             _languageChanged = new SmartEvent(this, this.RealHandle, "language,changed");
-            _languageChanged.On += (s, e) => {
+            _languageChanged.On += (s, e) =>
+            {
                 LanguageChanged?.Invoke(this, EventArgs.Empty);
             };
 
@@ -67,7 +68,7 @@ namespace ElmSharp
         {
             set
             {
-                if(value.IsDefault)
+                if (value.IsDefault)
                 {
                     string part = ClassName.ToLower().Replace("elm_", "") + "/" + "bg";
                     EdjeObject.DeleteColorClass(part);
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 8944eff..109d97e
@@ -136,7 +136,7 @@ namespace ElmSharp
         {
             Interop.Elementary.elm_naviframe_item_pop(RealHandle);
         }
-        
+
         protected override IntPtr CreateHandle(EvasObject parent)
         {
             IntPtr handle = Interop.Elementary.elm_layout_add(parent);
old mode 100755 (executable)
new mode 100644 (file)
index 9174250..c6aac69
@@ -87,7 +87,7 @@ namespace ElmSharp
         {
             Interop.Elementary.elm_panel_toggle(RealHandle);
         }
-        
+
         protected override IntPtr CreateHandle(EvasObject parent)
         {
             IntPtr handle = Interop.Elementary.elm_layout_add(parent);
old mode 100755 (executable)
new mode 100644 (file)
index e9d9b95..e669a70 100644 (file)
@@ -27,7 +27,7 @@ namespace ElmSharp
         /// Create a new Polygon widget.
         /// <param name="p">The EvasObject to which the new Polygon will be attached as a child.</param>
         /// </summary>
-        public Polygon (EvasObject parent) : base(parent)
+        public Polygon(EvasObject parent) : base(parent)
         {
         }
 
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 9b1dfba..b6424a5
@@ -15,7 +15,6 @@
  */
 
 using System;
-using System.Collections.Generic;
 
 namespace ElmSharp
 {
@@ -36,7 +35,8 @@ namespace ElmSharp
         Expand
     }
 
-    public class ToolbarItemEventArgs : EventArgs {
+    public class ToolbarItemEventArgs : EventArgs
+    {
         public ToolbarItem Item { get; private set; }
 
         internal static ToolbarItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
index aadc2de..1a89ec8 100644 (file)
@@ -92,7 +92,7 @@ internal static partial class Interop
 
         internal static void elm_win_wm_rotation_available_rotations_set(IntPtr obj, int[] rotations)
         {
-            IntPtr pRotations = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(int)) * rotations.Length);
+            IntPtr pRotations = Marshal.AllocHGlobal(Marshal.SizeOf<int>() * rotations.Length);
             Marshal.Copy(rotations, 0, pRotations, rotations.Length);
             _elm_win_wm_rotation_available_rotations_set(obj, pRotations, (uint)rotations.Length);
             Marshal.FreeHGlobal(pRotations);
index e6aacc0..fb635aa 100644 (file)
@@ -1,7 +1,7 @@
 {
   "dependencies": {
     "Microsoft.NETCore.App": "1.0.0",
-    "Tizen.Applications": "1.0.1"
+    "Tizen.Applications": "1.1.0"
   },
   "frameworks": {
     "netcoreapp1.0": {}
index 92a5d4a..5150454 100644 (file)
@@ -14,9 +14,6 @@
  * limitations under the License.
  */
 
-using System;
-using System.Linq;
-
 namespace ElmSharp.Test
 {
     public class ScreenInformationTest : TestCaseBase
@@ -24,9 +21,6 @@ namespace ElmSharp.Test
         public override string TestName => "ScreenInformationTest";
         public override string TestDescription => "To get screen information";
 
-        Naviframe _navi;
-        int _sequence = 0;
-
         public override void Run(Window window)
         {
             Conformant conformant = new Conformant(window);
@@ -46,66 +40,6 @@ namespace ElmSharp.Test
             label2.Text = string.Format("<span color=#FFFFFF , font_size=50>ScreenDPI : xdpi : {0} ydpi : {1}", window.ScreenDpi.X, window.ScreenDpi.Y);
             label2.Show();
             box.PackEnd(label2);
-        }
-
-        EvasObject CreatePage(Window parent)
-        {
-            Box box = new Box(parent);
-            box.Show();
-
-            Label label = new Label(parent)
-            {
-                Text = string.Format("{0} Page", _sequence++),
-                WeightX = 1,
-                AlignmentX = -1,
-            };
-            Button push = new Button(parent)
-            {
-                Text = "Push",
-                WeightX = 1,
-                AlignmentX = -1,
-            };
-            Button pop = new Button(parent)
-            {
-                Text = "pop",
-                WeightX = 1,
-                AlignmentX = -1,
-            };
-
-            label.Show();
-            push.Show();
-            pop.Show();
-
-            push.Clicked += (s, e) =>
-            {
-                _navi.Push(CreatePage(parent), string.Format("{0} Page", _sequence - 1));
-            };
-
-            pop.Clicked += (s, e) =>
-            {
-                var item = _navi.NavigationStack.LastOrDefault();
-                int nativePointer = (int)(IntPtr)(item.Content);
-                Console.WriteLine("----- Before Call _navi.Pop() {0:x} ", nativePointer);
-                _navi.Pop();
-                Console.WriteLine("----- After Call _navi.Pop() {0:x} ", nativePointer);
-            };
-
-            push.Resize(500, 100);
-            pop.Resize(500, 100);
-            label.Resize(500, 100);
-            box.SetLayoutCallback(() =>
-            {
-                Console.WriteLine("Layout callback with : {0}", box.Geometry);
-                var rect = box.Geometry;
-                label.Move(rect.X, rect.Y);
-                push.Move(rect.X, rect.Y + 100);
-                pop.Move(rect.X, rect.Y + 200);
-            });
-
-            box.PackEnd(label);
-            box.PackEnd(push);
-            box.PackEnd(pop);
-            return box;
-        }
+        }        
     }
 }