diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-21 00:46:43 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-21 00:46:43 +0200 |
| commit | f1cda0b040c750e0fdfb5df35349aff6af163446 (patch) | |
| tree | cc0a4d70daa598102785340305e76740ddee5fb3 /Samples/HelloWorld | |
| parent | bc9f4e2cc8e46d5f452fabea472ebc99a909a992 (diff) | |
styling and debugging
Diffstat (limited to 'Samples/HelloWorld')
| -rw-r--r-- | Samples/HelloWorld/HelloWorld.csproj | 48 | ||||
| -rw-r--r-- | Samples/HelloWorld/ILView.cs | 35 | ||||
| -rw-r--r-- | Samples/HelloWorld/ui/helloworld.crow | 35 |
3 files changed, 2 insertions, 116 deletions
diff --git a/Samples/HelloWorld/HelloWorld.csproj b/Samples/HelloWorld/HelloWorld.csproj index 405765d1..253e0eb1 100644 --- a/Samples/HelloWorld/HelloWorld.csproj +++ b/Samples/HelloWorld/HelloWorld.csproj @@ -1,53 +1,7 @@ -<Project Sdk="Microsoft.NET.Sdk"> - <PropertyGroup> - <TargetFrameworks>net472</TargetFrameworks> - <OutputType>Exe</OutputType> - <EnableDefaultNoneItems>false</EnableDefaultNoneItems> - <ReleaseVersion>0.8.0</ReleaseVersion> - </PropertyGroup> - - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugType>full</DebugType> - <DefineConstants>TRACE;DEBUG</DefineConstants> - </PropertyGroup> - <ItemGroup Condition="$(TargetFramework.StartsWith('net4'))"> - <Reference Include="System" /> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\..\Crow\Crow.csproj" /> - </ItemGroup> - +<Project Sdk="Microsoft.NET.Sdk"> <ItemGroup> <EmbeddedResource Include="ui\**\*.*"> <LogicalName>HelloWorld.%(Filename)%(Extension)</LogicalName> </EmbeddedResource> </ItemGroup> - <ItemGroup> -<!-- <PackageReference Include="Microsoft.CodeAnalysis.Features" Version="3.4.0" />--> - <PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="3.4.0" /> - <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.4.0" /> - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.4.0" /> - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="3.4.0" /> - </ItemGroup> - - <!--<ItemGroup> - <PackageReference Include="SQLitePCLRaw.core" Version="2.0.2" /> - <PackageReference Include="System.Memory" Version="4.5.3" /> - </ItemGroup> --> - - <ItemGroup> - <PackageReference Include="Microsoft.Build" Version="16.4.0"> - <IncludeAssets>compile</IncludeAssets> - </PackageReference> - <PackageReference Include="Microsoft.Build.Framework" Version="16.4.0"> - <IncludeAssets>compile</IncludeAssets> - </PackageReference> - <PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.4.0"> - <IncludeAssets>compile</IncludeAssets> - </PackageReference> - <PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.4.0"> - <IncludeAssets>compile</IncludeAssets> - </PackageReference> - </ItemGroup> </Project> diff --git a/Samples/HelloWorld/ILView.cs b/Samples/HelloWorld/ILView.cs deleted file mode 100644 index cb974801..00000000 --- a/Samples/HelloWorld/ILView.cs +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (c) 2020 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> - * - * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) - */ - -using System; -using Crow; - -namespace test { - public class TestClass { - int a = 0; - } -} - -namespace HelloWorld -{ - public class ILView : Widget - { - readonly int a; - #region CTOR - public ILView () - { - a = 10; - } - #endregion - void test () - { -#if DEBUG -Console.WriteLine ("debug" + a.ToString()); - -#endif - } - - } -} diff --git a/Samples/HelloWorld/ui/helloworld.crow b/Samples/HelloWorld/ui/helloworld.crow index 5c0fbbaf..73ccdffd 100644 --- a/Samples/HelloWorld/ui/helloworld.crow +++ b/Samples/HelloWorld/ui/helloworld.crow @@ -1,35 +1,2 @@ <?xml version="1.0"?> -<VerticalStack Background="DimGrey"> - <ColorPicker Name="cp" Width="Stretched"/> - <HorizontalStack Fit="True" Margin="10" Background="Jet"> - <Widget Width="100" Height="60" Background="{../../cp.CurrentColor}"/> - <Widget Width="100" Height="60" Background="{../../cp.CurrentColor2}"/> - </HorizontalStack> - <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> - <Label Width="100" Text="Red"/> - <Label Width="100" Text="{R}"/> - </HorizontalStack> - <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> - <Label Width="100" Text="Blue"/> - <Label Width="100" Text="{B}"/> - </HorizontalStack> - <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> - <Label Width="100" Text="Green"/> - <Label Width="100" Text="{G}"/> - </HorizontalStack> - <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> - <Label Width="100" Text="Hue"/> - <Label Width="100" Text="{Hue}"/> - </HorizontalStack> - <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> - <Label Width="100" Text="Saturation"/> - <Label Width="100" Text="{Saturation}"/> - </HorizontalStack> - <HorizontalStack DataSource="{../cp.CurrentColor}" Fit="True" Margin="10" Background="Jet"> - <Label Width="100" Text="Value"/> - <Label Width="100" Text="{Value}"/> - </HorizontalStack> -</VerticalStack> - - - +<Label Text="Hello world"/>
\ No newline at end of file |