Skip to content

Commit aa73dde

Browse files
committed
Added examples to the Demo app
1 parent d53002e commit aa73dde

7 files changed

Lines changed: 262 additions & 151 deletions

File tree

src/SmartFormat.Demo/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static void Main()
1515
{
1616
Application.EnableVisualStyles();
1717
Application.SetCompatibleTextRenderingDefault(false);
18-
Application.Run(new SmartFormatTest());
18+
Application.Run(new SmartFormatDemo());
1919
}
2020
}
2121
}

src/SmartFormat.Demo/SmartFormat.Demo.csproj

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>SmartFormat.Demo</RootNamespace>
1212
<AssemblyName>SmartFormat.Demo</AssemblyName>
13-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1414
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
1515
<FileAlignment>512</FileAlignment>
1616
</PropertyGroup>
@@ -36,29 +36,31 @@
3636
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3737
<PlatformTarget>AnyCPU</PlatformTarget>
3838
<OutputPath>bin\Debug\</OutputPath>
39+
<DefineConstants>TRACE;DEBUG</DefineConstants>
3940
</PropertyGroup>
4041
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4142
<PlatformTarget>AnyCPU</PlatformTarget>
4243
<OutputPath>bin\Release\</OutputPath>
4344
</PropertyGroup>
4445
<ItemGroup>
4546
<Reference Include="System" />
46-
<Reference Include="System.Core" />
47+
<Reference Include="System.Core">
48+
<RequiredTargetFramework>3.5</RequiredTargetFramework>
49+
</Reference>
4750
<Reference Include="System.Xml.Linq" />
4851
<Reference Include="System.Data.DataSetExtensions" />
49-
<Reference Include="Microsoft.CSharp" />
5052
<Reference Include="System.Data" />
5153
<Reference Include="System.Deployment" />
5254
<Reference Include="System.Drawing" />
5355
<Reference Include="System.Windows.Forms" />
5456
<Reference Include="System.Xml" />
5557
</ItemGroup>
5658
<ItemGroup>
57-
<Compile Include="SmartFormatTest.cs">
59+
<Compile Include="SmartFormatDemo.cs">
5860
<SubType>Form</SubType>
5961
</Compile>
60-
<Compile Include="SmartFormatTest.Designer.cs">
61-
<DependentUpon>SmartFormatTest.cs</DependentUpon>
62+
<Compile Include="SmartFormatDemo.Designer.cs">
63+
<DependentUpon>SmartFormatDemo.cs</DependentUpon>
6264
</Compile>
6365
<Compile Include="Program.cs" />
6466
<Compile Include="Properties\AssemblyInfo.cs" />
@@ -82,8 +84,9 @@
8284
<Compile Include="ThirdParty\RTFLib\RTFRow.cs" />
8385
<Compile Include="ThirdParty\RTFLib\RTFRowDefinition.cs" />
8486
<Compile Include="ThirdParty\RTFLib\RTFUtil.cs" />
85-
<EmbeddedResource Include="SmartFormatTest.resx">
86-
<DependentUpon>SmartFormatTest.cs</DependentUpon>
87+
<EmbeddedResource Include="SmartFormatDemo.resx">
88+
<DependentUpon>SmartFormatDemo.cs</DependentUpon>
89+
<SubType>Designer</SubType>
8790
</EmbeddedResource>
8891
<EmbeddedResource Include="Properties\Resources.resx">
8992
<Generator>ResXFileCodeGenerator</Generator>
@@ -104,6 +107,9 @@
104107
<DesignTimeSharedInput>True</DesignTimeSharedInput>
105108
</Compile>
106109
</ItemGroup>
110+
<ItemGroup>
111+
<Content Include="ThirdParty\RTFLib\Readme.txt" />
112+
</ItemGroup>
107113
<ItemGroup>
108114
<ProjectReference Include="..\SmartFormat.Tests\SmartFormat.Tests.csproj">
109115
<Project>{5B6368BF-B7C3-440F-ABAA-52A48A837A46}</Project>
@@ -114,9 +120,6 @@
114120
<Name>SmartFormat</Name>
115121
</ProjectReference>
116122
</ItemGroup>
117-
<ItemGroup>
118-
<Content Include="ThirdParty\RTFLib\Readme.txt" />
119-
</ItemGroup>
120123
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
121124
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
122125
Other similar extension points exist, see Microsoft.Common.targets.

src/SmartFormat.Demo/SmartFormatTest.Designer.cs renamed to src/SmartFormat.Demo/SmartFormatDemo.Designer.cs

Lines changed: 76 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)