aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DAL.Local/Tango.DAL.Local.csproj
blob: 9bcc7f84975a03d732fb2133ad5717c1c2dfea6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bo
<?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>{0E0EEF3E-8F4E-4F23-9D19-479FD8D76C12}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Tango.DAL.Local</RootNamespace>
    <AssemblyName>Tango.DAL.Local</AssemblyName>
    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <NuGetPackageImportStamp>
    </NuGetPackageImportStamp>
  </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>
  <ItemGroup>
    <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
      <HintPath>..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.dll</HintPath>
    </Reference>
    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
      <HintPath>..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.ComponentModel.DataAnnotations" />
    <Reference Include="System.Core" />
    <Reference Include="System.Data.SQLite, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Data.SQLite.Core.1.0.108.0\lib\net46\System.Data.SQLite.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Data.SQLite.EF6, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Data.SQLite.EF6.1.0.108.0\lib\net46\System.Data.SQLite.EF6.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Data.SQLite.Linq, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
      <HintPath>..\packages\System.Data.SQLite.Linq.1.0.108.0\lib\net46\System.Data.SQLite.Linq.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Runtime.Serialization" />
    <Reference Include="System.Security" />
    <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="..\Versioning\GlobalVersionInfo.cs">
      <Link>GlobalVersionInfo.cs</Link>
    </Compile>
    <Compile Include="DB\ACTION_TYPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\ADDRESS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\APPLICATION_DISPLAY_PANEL_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\APPLICATION_FIRMWARE_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\APPLICATION_OS_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\APPLICATION_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\BRUSH_STOPS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\CARTRIDGE_TYPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\CAT.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\CCT.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\COLOR_SPACES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\CONFIGURATION.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\CONTACT.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\DISPENSER_TYPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\EMBEDDED_FIRMWARE_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\EMBEDDED_SOFTWARE_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\EVENT_TYPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\EVENT_TYPES_ACTIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\FIBER_SHAPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\FIBER_SYNTHS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\HARDWARE_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\IDS_PACKS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\IDS_PACK_FORMULAS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\IO.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\JOB.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\JOB_RUNS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\LINEAR_MASS_DENSITY_UNITS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\LIQUID_TYPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\LIQUID_TYPES_RMLS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\LocalADO.Context.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>LocalADO.Context.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\LocalADO.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\LocalADO.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>LocalADO.edmx</DependentUpon>
    </Compile>
    <Compile Include="DB\MACHINE.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MACHINES_CONFIGURATIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MACHINES_EVENTS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MACHINE_VERSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MEDIA_COLORS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MEDIA_CONDITIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MEDIA_MATERIALS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MEDIA_PURPOSES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\MID_TANK_TYPES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\ORGANIZATION.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\PERMISSION.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\PROCESS_PARAMETERS_TABLES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\PROCESS_PARAMETERS_TABLES_GROUPS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\RML.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\ROLE.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\ROLES_PERMISSIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\SEGMENT.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\SYNC_CONFIGURATIONS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\USER.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\USERS_ROLES.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="DB\WINDING_METHODS.cs">
      <DependentUpon>LocalADO.tt</DependentUpon>
    </Compile>
    <Compile Include="Partials\LocalDB.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
    <EntityDeploy Include="DB\LocalADO.edmx">
      <Generator>EntityModelCodeGenerator</Generator>
      <LastGenOutput>LocalADO.Designer.cs</LastGenOutput>
    </EntityDeploy>
    <None Include="DB\LocalADO.edmx.diagram">
      <DependentUpon>LocalADO.edmx</DependentUpon>
    </None>
    <None Include="packages.config" />
  </ItemGroup>
  <ItemGroup>
    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="DB\LocalADO.Context.tt">
      <Generator>TextTemplatingFileGenerator</Generator>
      <DependentUpon>LocalADO.edmx</DependentUpon>
      <LastGenOutput>LocalADO.Context.cs</LastGenOutput>
    </Content>
    <Content Include="DB\LocalADO.tt">
      <Generator>TextTemplatingFileGenerator</Generator>
      <DependentUpon>LocalADO.edmx</DependentUpon>
      <LastGenOutput>LocalADO.cs</LastGenOutput>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\System.Data.SQLite.Core.targets')" />
  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
    <PropertyGroup>
      <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\System.Data.SQLite.Core.targets'))" />
  </Target>
  <ProjectExtensions>
    <VisualStudio>
      <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
    </VisualStudio>
  </ProjectExtensions>
</Project>
static extern IntPtr DeleteDC(IntPtr hDc); [DllImport("gdi32.dll", EntryPoint = "DeleteObject")] public static extern IntPtr DeleteObject(IntPtr hDc); [DllImport("gdi32.dll", EntryPoint = "BitBlt")] public static extern bool BitBlt(IntPtr hdcDest, int xDest, int yDest, int wDest, int hDest, IntPtr hdcSource, int xSrc, int ySrc, int RasterOp); [DllImport("gdi32.dll", EntryPoint = "CreateCompatibleBitmap")] public static extern IntPtr CreateCompatibleBitmap (IntPtr hdc, int nWidth, int nHeight); [DllImport("gdi32.dll", EntryPoint = "CreateCompatibleDC")] public static extern IntPtr CreateCompatibleDC(IntPtr hdc); [DllImport("gdi32.dll", EntryPoint = "SelectObject")] public static extern IntPtr SelectObject(IntPtr hdc, IntPtr bmp); #endregion } internal class Win32Stuff { #region Class Variables public const int SM_CXSCREEN = 0; public const int SM_CYSCREEN = 1; public const Int32 CURSOR_SHOWING = 0x00000001; [StructLayout(LayoutKind.Sequential)] public struct ICONINFO { public bool fIcon; // Specifies whether this structure defines an icon or a cursor. A value of TRUE specifies public Int32 xHotspot; // Specifies the x-coordinate of a cursor's hot spot. If this structure defines an icon, the hot public Int32 yHotspot; // Specifies the y-coordinate of the cursor's hot spot. If this structure defines an icon, the hot public IntPtr hbmMask; // (HBITMAP) Specifies the icon bitmask bitmap. If this structure defines a black and white icon, public IntPtr hbmColor; // (HBITMAP) Handle to the icon color bitmap. This member can be optional if this } [StructLayout(LayoutKind.Sequential)] public struct POINT { public Int32 x; public Int32 y; } [StructLayout(LayoutKind.Sequential)] public struct CURSORINFO { public Int32 cbSize; // Specifies the size, in bytes, of the structure. public Int32 flags; // Specifies the cursor state. This parameter can be one of the following values: public IntPtr hCursor; // Handle to the cursor. public POINT ptScreenPos; // A POINT structure that receives the screen coordinates of the cursor. } #endregion #region Class Functions [DllImport("user32.dll", EntryPoint = "GetDesktopWindow")] public static extern IntPtr GetDesktopWindow(); [DllImport("user32.dll", EntryPoint = "GetDC")] public static extern IntPtr GetDC(IntPtr ptr); [DllImport("user32.dll", EntryPoint = "GetSystemMetrics")] public static extern int GetSystemMetrics(int abc); [DllImport("user32.dll", EntryPoint = "GetWindowDC")] public static extern IntPtr GetWindowDC(Int32 ptr); [DllImport("user32.dll", EntryPoint = "ReleaseDC")] public static extern IntPtr ReleaseDC(IntPtr hWnd, IntPtr hDc); [DllImport("user32.dll", EntryPoint = "GetCursorInfo")] public static extern bool GetCursorInfo(out CURSORINFO pci); [DllImport("user32.dll", EntryPoint = "CopyIcon")] public static extern IntPtr CopyIcon(IntPtr hIcon); [DllImport("user32.dll", SetLastError = true)] static extern bool DestroyIcon(IntPtr hIcon); [DllImport("user32.dll", EntryPoint = "GetIconInfo")] public static extern bool GetIconInfo(IntPtr hIcon, out ICONINFO piconinfo); #endregion } #endregion /// <summary> /// Applies the current user cursor icon at the specified position on the specified bitmap. /// </summary> /// <param name="graphics">The drawing graphics object.</param> /// <param name="bitmap">The bitmap.</param> /// <param name="left">The left cursor position.</param> /// <param name="top">The top cursor position.</param> [DebuggerHidden] [DebuggerStepThrough] public static void ApplyCursor(System.Drawing.Graphics graphics, System.Drawing.Bitmap bitmap, int left, int top) { try { CURSORINFO pci; pci.cbSize = Marshal.SizeOf(typeof(CURSORINFO)); if (GetCursorInfo(out pci)) { if (pci.flags == CURSOR_SHOWING) { //var iconPointer = User32.CopyIcon(pci.hCursor); //User32.ICONINFO iconInfo; //User32.GetIconInfo(iconPointer, out iconInfo); var hdc = graphics.GetHdc(); User32.DrawIconEx(hdc, pci.ptScreenPos.x - left, pci.ptScreenPos.y - top, pci.hCursor, 0, 0, 0, IntPtr.Zero, 0x0003); //User32.DestroyIcon(iconPointer); GDIStuff.DeleteObject(pci.hCursor); } } graphics.ReleaseHdc(); } catch { } } } }