Skip to content
Browse files

initial commit

  • Loading branch information...
Daniel Schausberger
Daniel Schausberger committed Aug 7, 2017
1 parent 1153163 commit 9c91865a1dc327d719b4be5a3b4751206f45b228

Large diffs are not rendered by default.

@@ -0,0 +1,2 @@
net stop ups_battery_service
net start ups_battery_service
@@ -0,0 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ups_battery_service", "ups_battery_service\ups_battery_service.csproj", "{70AA2F39-BE93-4EF7-9C54-C9E23797B796}"
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Setup", "Setup\Setup.vdproj", "{04A1685A-A44D-460D-A0EB-466E99E5153C}"
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{70AA2F39-BE93-4EF7-9C54-C9E23797B796}.Debug|x86.ActiveCfg = Debug|x86
{70AA2F39-BE93-4EF7-9C54-C9E23797B796}.Debug|x86.Build.0 = Debug|x86
{70AA2F39-BE93-4EF7-9C54-C9E23797B796}.Release|x86.ActiveCfg = Release|x86
{70AA2F39-BE93-4EF7-9C54-C9E23797B796}.Release|x86.Build.0 = Release|x86
{04A1685A-A44D-460D-A0EB-466E99E5153C}.Debug|x86.ActiveCfg = Debug
{04A1685A-A44D-460D-A0EB-466E99E5153C}.Release|x86.ActiveCfg = Release
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace ups_battery_service
static class Program
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
static void Main()
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
new main()

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,19 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;

namespace ups_battery_service
public partial class ProjectInstaller : System.Configuration.Install.Installer
public ProjectInstaller()
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
... headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/">
<value>[base64 mime encoded serialized .NET Framework object]</value>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/ is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
<xsd:schema id="root" xmlns="" xmlns:xsd="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:element name="value" type="xsd:string" minOccurs="0" />
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
<xsd:element name="assembly">
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
<xsd:element name="data">
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
<xsd:element name="resheader">
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:attribute name="name" type="xsd:string" use="required" />
<resheader name="resmimetype">
<resheader name="version">
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<metadata name="serviceProcessInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
<metadata name="serviceInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>196, 17</value>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@@ -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 mit einer Assembly verknüpft sind.
[assembly: AssemblyTitle("DXSdata UPS Battery Service")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UPS Battery Service")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

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

// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("c87cf3f6-237d-4dd2-9704-6a872701d688")]

// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("")]
[assembly: AssemblyFileVersion("")]

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,21 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="" CurrentProfile="(Default)" GeneratedClassNamespace="ups_battery_service" GeneratedClassName="Settings">
<Profiles />
<Setting Name="interval_ms" Type="System.Int32" Scope="Application">
<Value Profile="(Default)">10000</Value>
<Setting Name="servers" Type="System.Collections.Specialized.StringCollection" Scope="Application">
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;ArrayOfString xmlns:xsi="" xmlns:xsd=""&gt;
<Setting Name="time_to_wait_before_shutdown_eventlog_entry_min" Type="System.Int32" Scope="Application">
<Value Profile="(Default)">45</Value>
<Setting Name="time_reminder_min" Type="System.Int32" Scope="User">
<Value Profile="(Default)">5</Value>

0 comments on commit 9c91865

Please sign in to comment.
You can’t perform that action at this time.