aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Converters/StringToFirstLineConverter.cs
blob: 2fa456054e45cf81f817f28a7fcb666dc59e2304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace Tango.MachineStudio.Logging.Converters
{
    public class StringToFirstLineConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value.ToString().ToLines().First();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
CodeGeneration</RootNamespace> <AssemblyName>Tango.CodeGeneration</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <SccProjectName>SAK</SccProjectName> <SccLocalPath>SAK</SccLocalPath> <SccAuxPath>SAK</SccAuxPath> <SccProvider>SAK</SccProvider> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>..\Build\Core\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>..\Build\Core\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup> <SignAssembly>false</SignAssembly> </PropertyGroup> <PropertyGroup> <AssemblyOriginatorKeyFile> </AssemblyOriginatorKeyFile> </PropertyGroup> <ItemGroup> <Reference Include="RazorEngine, Version=3.10.0.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a, processorArchitecture=MSIL"> <HintPath>..\packages\RazorEngine.3.10.0\lib\net45\RazorEngine.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Core" /> <Reference Include="System.Web" /> <Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> <HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath> </Reference> <Reference Include="System.Xml.Linq" /> <Reference Include="System.Data.DataSetExtensions" /> <Reference Include="Microsoft.CSharp" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <Compile Include="..\Versioning\GlobalVersionInfo.cs"> <Link>GlobalVersionInfo.cs</Link> </Compile> <Compile Include="Class.cs" /> <Compile Include="CodeFile.cs" /> <Compile Include="CodeObject.cs" /> <Compile Include="CustomResolver.cs" /> <Compile Include="DpProperty.cs" /> <Compile Include="EntityInheritedDTOCodeFile.cs" /> <Compile Include="EntityDTOCodeFile.cs" /> <Compile Include="EntityCodeFileJavaExtension.cs" /> <Compile Include="EntityCodeFileJava.cs" /> <Compile Include="EntityCodeFile.cs" /> <Compile Include="EntityInheritedCodeFile.cs" /> <Compile Include="EnumerationField.cs" /> <Compile Include="ObservablesContextCodeFile.cs" /> <Compile Include="ObservablesStaticCollectionsFile.cs" /> <Compile Include="ProtoEnumFile.cs" /> <Compile Include="ProtoMessageFile.cs" /> <Compile Include="ProtoProperty.cs" /> <Compile Include="DbPropertyExtensionModel.cs" /> <Compile Include="TangoDAOJavaFile.cs" /> <Compile Include="EnumerationFileJava.cs" /> <Compile Include="EnumerationFile.cs" /> <Compile Include="Helper.cs" /> <Compile Include="ICodeObject.cs" /> <Compile Include="Method.cs" /> <Compile Include="CodeObjectModifier.cs" /> <Compile Include="MethodModifier.cs" /> <Compile Include="Namespace.cs" /> <Compile Include="ObservablesAdapterFile.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Property.cs" /> <Compile Include="TangoWebClientv2CodeFile.cs" /> <Compile Include="TangoWebClientCodeFile.cs" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Templates\CodeFile.cshtml" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Templates\Property.cshtml" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Templates\DpProperty.cshtml" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Templates\Method.cshtml" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Templates\Class.cshtml" /> </ItemGroup> <ItemGroup> <None Include="packages.config" /> <EmbeddedResource Include="Templates\Namespace.cshtml" /> <EmbeddedResource Include="Templates\EntityCodeFile.cshtml" /> <EmbeddedResource Include="Templates\EnumerationFile.cshtml" /> <EmbeddedResource Include="Templates\ObservablesAdapterFile.cshtml" /> <EmbeddedResource Include="Templates\EntityCodeFileJava.cshtml" /> <EmbeddedResource Include="Templates\EnumerationFileJava.cshtml" /> <EmbeddedResource Include="Templates\TangoDAOJavaFile.cshtml" /> <EmbeddedResource Include="Templates\ObservablesContextCodeFile.cshtml" /> <EmbeddedResource Include="Templates\ProtoMessageFile.cshtml" /> <EmbeddedResource Include="Templates\ProtoEnumFile.cshtml" /> <EmbeddedResource Include="Templates\EntityCodeFileJavaExtension.cshtml" /> <EmbeddedResource Include="Templates\ObservablesStaticCollectionsFile.cshtml" /> <EmbeddedResource Include="Templates\EntityInheritedCodeFile.cshtml" /> <EmbeddedResource Include="Templates\TangoWebClientCodeFile.cshtml" /> <EmbeddedResource Include="Templates\EntityDTOCodeFile.cshtml" /> <EmbeddedResource Include="Templates\EntityInheritedDTOCodeFile.cshtml" /> <EmbeddedResource Include="Templates\TangoWebClientv2CodeFile.cshtml" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> <VisualStudio> <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" /> </VisualStudio> </ProjectExtensions> <!-- 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>