Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions FileIndexer/CommonTypes/CommonTypes.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D75E8DFA-02AD-4D16-9F76-3DC0783B5A52}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CommonTypes</RootNamespace>
<AssemblyName>CommonTypes</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\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>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</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="Entity\KFZTyp.cs" />
<Compile Include="Utility\BindableBase.cs" />
<Compile Include="EntityWrapper\KFZViewModel.cs" />
<Compile Include="Entity\IEntity.cs" />
<Compile Include="Entity\KFZ.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
13 changes: 13 additions & 0 deletions FileIndexer/CommonTypes/Entity/IEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonTypes
{
public interface IEntity
{
int ID { get; set; }
}
}
26 changes: 26 additions & 0 deletions FileIndexer/CommonTypes/Entity/KFZ.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

namespace CommonTypes
{
public class KFZ : IEntity
{
public KFZ()
{

}

public int ID { get; set; }
public string Typ { get; set; }
public string FahrgestellNR { get; set; }
public string Kennzeichen { get; set; }
public int Leistung { get; set; }

public bool Equals(KFZ other)
{
return ID == other.ID &&
Typ == other.Typ &&
FahrgestellNR == other.FahrgestellNR &&
Kennzeichen == other.Kennzeichen &&
Leistung == other.Leistung;
}
}
}
19 changes: 19 additions & 0 deletions FileIndexer/CommonTypes/Entity/KFZTyp.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonTypes
{
public class KFZTyp : IEntity
{
public KFZTyp()
{

}

public int ID { get; set; }
public string Beschreibung { get; set; }
}
}
100 changes: 100 additions & 0 deletions FileIndexer/CommonTypes/EntityWrapper/KFZViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
using Utility;
using CommonTypes;

namespace KFZApp.ViewModel.EntityWrapper
{
public class KFZViewModel : BindableBase
{
public KFZViewModel(KFZ entity)
{
_Entity = entity;
}

private KFZ _Entity;

#region EntityProperties

public KFZ Entity
{
get { return _Entity; }
}

public int ID
{
get { return _Entity.ID; }
set
{
_Entity.ID = value;
OnPropertyChanged();
}
}

public string Typ
{
get { return _Entity.Typ; }
set
{
_Entity.Typ = value;
OnPropertyChanged();
}
}

public string FahrgestellNR
{
get { return _Entity.FahrgestellNR; }
set
{
_Entity.FahrgestellNR = value;
OnPropertyChanged();
}
}

public string Kennzeichen
{
get { return _Entity.Kennzeichen; }
set
{
_Entity.Kennzeichen = value;
OnPropertyChanged();
}
}

public int Leistung
{
get { return _Entity.Leistung; }
set
{
_Entity.Leistung = value;
OnPropertyChanged();
}
}

#endregion

#region NonEntityProperties

private bool _IsDirty = false;
public bool IsDirty
{
get { return _IsDirty; }
set
{
_IsDirty = value;
OnPropertyChanged();
}
}

private bool _IsNew = false;
public bool IsNew
{
get { return _IsNew; }
set
{
_IsNew = value;
OnPropertyChanged();
}
}

#endregion
}
}
36 changes: 36 additions & 0 deletions FileIndexer/CommonTypes/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("CommonTypes")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CommonTypes")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]

// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("d75e8dfa-02ad-4d16-9f76-3dc0783b5a52")]

// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
14 changes: 14 additions & 0 deletions FileIndexer/CommonTypes/Utility/BindableBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace Utility
{
public class BindableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged([CallerMemberName]string property = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using System.Text;
using System.Threading.Tasks;

namespace DB_Connector
namespace CommonTypes1
{
class Class4
public class Class1
{
}
}
51 changes: 51 additions & 0 deletions FileIndexer/CommonTypes1/CommonTypes1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FB296032-61B0-47A4-9905-49C89EDDD359}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CommonTypes1</RootNamespace>
<AssemblyName>CommonTypes1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\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>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</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="Class1.cs" />
<Compile Include="Entity\IEntity.cs" />
<Compile Include="Entity\Files.cs" />
<Compile Include="Entity\FilesList.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
27 changes: 27 additions & 0 deletions FileIndexer/CommonTypes1/Entity/Files.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

namespace CommonTypes
{
public class Files : IEntity
{
public Files()
{

}

public int ID { get; set; }
public string Pfad { get; set; }

public string Content { get; set; }




public bool Equals(Files other)
{
return ID == other.ID &&
Pfad == other.Pfad &&
Content == other.Content;

}
}
}
20 changes: 20 additions & 0 deletions FileIndexer/CommonTypes1/Entity/FilesList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommonTypes1;

namespace CommonTypes
{
public class FilesList : IEntity
{
public FilesList()
{

}

public int ID { get; set; }

}
}
14 changes: 14 additions & 0 deletions FileIndexer/CommonTypes1/Entity/IEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommonTypes1;

namespace CommonTypes
{
public interface IEntity
{
int ID { get; set; }
}
}
Loading