aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SystemInfo/Win32_SerialPortConfiguration.cs
blob: d1efe826b5e0eed77ad7e0745d19abec85c67d2e (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
using System;
using System.Collections.Generic;
using System.Text;

namespace Tango.SystemInfo
{
    class Win32_SerialPortConfiguration : IWMI 
    {
             Connection WMIConnection;

        public Win32_SerialPortConfiguration(Connection WMIConnection)
        {
            this.WMIConnection = WMIConnection;
        }
        public IList<SystemObject> GetHardwareInfoList()
        {
            string className = System.Text.RegularExpressions.Regex.Match(
                                  this.GetType().ToString(), "Win32_.*").Value;

            return WMIReader.GetPropertyValues(WMIConnection,
                                               "SELECT * FROM " + className,
                                               className);
        }
    }
}
ight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<?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>{208C8BD8-72C6-4E3C-ACAA-351091A2ACC7}</ProjectGuid>
    <OutputType>library</OutputType>
    <RootNamespace>Tango.PPC.Shared</RootNamespace>
    <AssemblyName>Tango.PPC.Shared</AssemblyName>
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <WarningLevel>4</WarningLevel>
    <Deterministic>true</Deterministic>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\..\Build\PPC\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>..\..\Build\PPC\Debug\Tango.PPC.Shared.xml</DocumentationFile>
    <NoWarn>1591</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>..\..\Build\PPC\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>..\..\Build\PPC\Release\Tango.PPC.Shared.xml</DocumentationFile>
    <NoWarn>1591</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.ComponentModel.DataAnnotations" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="System.Net.Http" />
    <Reference Include="System.Xaml">
      <RequiredTargetFramework>4.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="WindowsBase" />
    <Reference Include="PresentationCore" />
    <Reference Include="PresentationFramework" />
  </ItemGroup>
  <ItemGroup>
    <Page Include="Themes\Generic.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="..\..\Versioning\GlobalVersionInfo.cs">
      <Link>GlobalVersionInfo.cs</Link>
    </Compile>
    <Compile Include="Events\PushEmulatedEventRequest.cs" />
    <Compile Include="Events\PushEmulatedEventResponse.cs" />
    <Compile Include="Information\GetMachineInformationRequest.cs" />
    <Compile Include="Information\GetMachineInformationResponse.cs" />
    <Compile Include="Information\InformationPackage.cs" />
    <Compile Include="Insights\InsightsDownloadCompletedRequest.cs" />
    <Compile Include="Insights\InsightsDownloadCompletedResponse.cs" />
    <Compile Include="Insights\InsightsMinDateRequest.cs" />
    <Compile Include="Insights\InsightsMinDateResponse.cs" />
    <Compile Include="Insights\InsightsRequest.cs" />
    <Compile Include="Insights\InsightsResponse.cs" />
    <Compile Include="Jobs\RemoteJobProgress.cs" />
    <Compile Include="Jobs\RemoteJobStage.cs" />
    <Compile Include="Jobs\RemoteJobUpdateRequest.cs" />
    <Compile Include="Jobs\RemoteJobUpdateResponse.cs" />
    <Compile Include="Logs\GetLogFilesRequest.cs" />
    <Compile Include="Logs\GetLogFilesResponse.cs" />
    <Compile Include="Logs\RemoteLogFile.cs" />
    <Compile Include="Logs\RemoteLogFileType.cs" />
    <Compile Include="Performance\PerformancePackage.cs" />
    <Compile Include="Performance\StartPerformanceUpdatesRequest.cs" />
    <Compile Include="Performance\StartPerformanceUpdatesResponse.cs" />
    <Compile Include="Properties\AssemblyInfo.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="RemoteActions\SimulateApplicationExceptionRequest.cs" />
    <Compile Include="RemoteActions\SimulateApplicationExceptionResponse.cs" />
    <Compile Include="RemoteUpgrade\StartRemoteFirmwareUpgradeRequest.cs" />
    <Compile Include="RemoteUpgrade\StartRemoteFirmwareUpgradeResponse.cs" />
    <Compile Include="RemoteUpgrade\StartRemoteApplicationUpgradeResponse.cs" />
    <Compile Include="RemoteUpgrade\StartRemoteApplicationUpgradeRequest.cs" />
    <Compile Include="SQL\ExecuteSqlRequest.cs" />
    <Compile Include="SQL\ExecuteSqlResponse.cs" />
    <Compile Include="SQL\RemoteSqlColumn.cs" />
    <Compile Include="SQL\RemoteSqlColumnCollection.cs" />
    <Compile Include="SQL\RemoteSqlDataSet.cs" />
    <Compile Include="SQL\RemoteSqlRow.cs" />
    <Compile Include="Updates\GetUpdatesAndPackagesRequest.cs" />
    <Compile Include="Updates\GetUpdatesAndPackagesResponse.cs" />
    <Compile Include="Updates\PackageInstallation.cs" />
    <Compile Include="Updates\PackageInstallationState.cs" />
    <Compile Include="Updates\PackageType.cs" />
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\..\Tango.BL\Tango.BL.csproj">
      <Project>{f441feee-322a-4943-b566-110e12fd3b72}</Project>
      <Name>Tango.BL</Name>
    </ProjectReference>
    <ProjectReference Include="..\..\Tango.Core\Tango.Core.csproj">
      <Project>{A34EE0F0-649D-41C8-8489-B6F1CC6924EE}</Project>
      <Name>Tango.Core</Name>
    </ProjectReference>
    <ProjectReference Include="..\..\Tango.PMR\Tango.PMR.csproj">
      <Project>{E4927038-348D-4295-AAF4-861C58CB3943}</Project>
      <Name>Tango.PMR</Name>
    </ProjectReference>
    <ProjectReference Include="..\..\Tango.SystemInfo\Tango.SystemInfo.csproj">
      <Project>{997a961c-beda-4b56-aa0f-c39e532f7ffa}</Project>
      <Name>Tango.SystemInfo</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <Folder Include="Simulation\" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>