Initialize

This commit is contained in:
Eugen Höglinger 2020-12-01 12:16:15 +01:00
commit f2fa0b202e
52 changed files with 8511 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,107 @@
lmutil - Copyright (c) 1989-2008 Acresso Software Inc. All Rights Reserved.
Flexible License Manager status on Thu 4/5/2018 11:50
[Detecting lmgrd processes...]
License server status: 28000@emscadlic
License file(s) on emscadlic: C:\Program Files\Siemens\PLMLicenseServer\splm8.lic:
emscadlic: license server UP (MASTER) v11.13
Vendor daemon status (on emscadlic):
ugslmd: UP v11.13
Feature usage info:
Users of vis_vsa_buildmodel: (Total of 2 licenses issued; Total of 0 licenses in use)
Users of visview_vsa_buildmodel: (Total of 2 licenses issued; Total of 0 licenses in use)
Users of visview_vsa_runsim: (Total of 2 licenses issued; Total of 0 licenses in use)
Users of visview_vsa_savedoc: (Total of 2 licenses issued; Total of 0 licenses in use)
Users of ideas_integration: (Total of 662 licenses issued; Total of 112 licenses in use)
"ideas_integration" v11.0, vendor: ugslmd
floating license
11325.vero.k TcServer Veronik_Karl (v10.0) (emscadlic/28000 7837), start Thu 4/5 8:25
11394.habe.a TcServer Haberbauer_Andreas (v10.0) (emscadlic/28000 113345), start Thu 4/5 6:41
Users of nx_integration: (Total of 662 licenses issued; Total of 259 licenses in use)
"nx_integration" v11.0, vendor: ugslmd
floating license
10088.gubi.r TcServer Gubi_Rudolf (v10.0) (emscadlic/28000 66017), start Thu 4/5 6:50
10850.prah.f TcServer Praher_Franz (v10.0) (emscadlic/28000 119922), start Thu 4/5 6:39
Users of DEAS: (Total of 22 licenses issued; Total of 22 licenses in use)
"DEAS" v31.0, vendor: ugslmd
floating license
001111810 EA0016101728 EA00161017280.0 (v31.0) (emscadlic/28000 31039), start Thu 4/5 11:00
001112114 EA0016100474 EA00161004740.0 (v31.0) (emscadlic/28000 232626), start Thu 4/5 8:31
Users of MA_adv_assemblies: (Total of 86 licenses issued; Total of 55 licenses in use)
"MA_adv_assemblies" v31.0, vendor: ugslmd
floating license
001111810 EA0016101728 EA00161017280.0 (v30.000) (emscadlic/28000 146127), start Thu 4/5 10:51
001121345 EA0016100393 EA00161003930.0 (v30.000) (emscadlic/28000 248387), start Thu 4/5 6:11
Users of MA_geometric_tol: (Total of 3 licenses issued; Total of 3 licenses in use)
"MA_geometric_tol" v31.0, vendor: ugslmd
floating license
510000271 EMK016102425 EMK0161024250.0 (v30.000) (emscadlic/28000 135312), start Thu 4/5 1:22
510080167 EMK016102426 EMK0161024260.0 (v30.000) (emscadlic/28000 237928), start Thu 4/5 2:08
520000825 EMCN16102240 EMCN161022400.0 (v30.000) (emscadlic/28000 17653), start Thu 4/5 1:29
Users of NX11110: (Total of 344 licenses issued; Total of 298 licenses in use)
"NX11110" v31.0, vendor: ugslmd
floating license
001111314 EA0016101702 EA00161017020.0 (v31.0) (emscadlic/28000 45918), start Thu 4/5 6:47
001111675 EA0016100702 EA00161007020.0 (v31.0) (emscadlic/28000 71748), start Thu 4/5 6:47
Users of NX13300N: (Total of 5 licenses issued; Total of 2 licenses in use)
"NX13300N" v31.0, vendor: ugslmd
floating license
01120377 EA0016300965 EA00163009650.0 (v31.0) (emscadlic/28000 15137), start Thu 4/5 7:19
140001290 EMCZ16100706 EMCZ161007060.0 (v31.0) (emscadlic/28000 191772), start Thu 4/5 6:36
Users of SC13500: (Total of 7 licenses issued; Total of 4 licenses in use)
"SC13500" v31.0, vendor: ugslmd
floating license
001121288 EA0017100060 EA00171000600.0 (v31.0) (emscadlic/28000 249569), start Thu 4/5 8:12
001528459 EA0017100241 EA00171002410.0 (v31.0) (emscadlic/28000 9354), start Thu 4/5 9:47
Users of UGID100: (Total of 6 licenses issued; Total of 0 licenses in use)
Users of adv_assemblies: (Total of 1 license issued; Total of 0 licenses in use)
Users of ansys_meshers: (Total of 7 licenses issued; Total of 0 licenses in use)
Users of assemblies: (Total of 7 licenses issued; Total of 0 licenses in use)
Users of borrowing: (Total of 1 license issued; Total of 0 licenses in use)
Users of c_p_p_runtime: (Total of 2 licenses issued; Total of 0 licenses in use)
Users of cam_base: (Total of 29 licenses issued; Total of 22 licenses in use)
"cam_base" v31.0, vendor: ugslmd
floating license
001111675 EA0016100702 EA00161007020.0 (v30.000) (emscadlic/28000 87972), start Thu 4/5 11:19
001112147 EA0016101684 EA00161016840.0 (v30.000) (emscadlic/28000 114931), start Thu 4/5 7:49

View File

@ -0,0 +1,9 @@
set UGS_LICENSE_SERVER=28000@EMSCADlic
"C:\cad\NXI65\sec\lmutil.exe" lmstat -c %UGS_LICENSE_SERVER% -a > c:\data\149_UGS_LICENSE_FILE.txt
"C:\Program Files (x86)\Notepad++\notepad++.exe" c:\data\149_UGS_LICENSE_FILE.txt
del c:\data\149_UGS_LICENSE_FILE.txt
pause

View File

@ -0,0 +1,9 @@
set UGS_LICENSE_SERVER=28000@EMSEDULIC
"C:\cad\NXI65\sec\lmutil.exe" lmstat -c %UGS_LICENSE_SERVER% -a > c:\data\edulic.txt
"C:\Program Files (x86)\Notepad++\notepad++.exe" c:\data\edulic.txt
del c:\data\edulic.txt
pause

View File

@ -0,0 +1,101 @@
[Info]<img border="0" src="..\pictures\Information.png" width="48" height="48">[/Info]
[Date]19.03.2018[/Date]
[Head]Tab Repr&auml;sentation nicht verwenden[/Head]
[Text]
Bitte die in der Registerkarte <b>Repr&auml;sentationen</b> angezeigten Funktionen <i>nicht verwenden</i>. Die Funktionen sind nur zum Testen f&uuml;r Teilnehmer des Workshops Repr&auml;sentation installiert.
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Instruction.png" width="48" height="48">[/Info]
[Date]09.03.2018[/Date]
[Head]Entfall der Allgemeintoleranztabelle[/Head]
[Text]
In Abstimmung mit D2-DS tritt mit sofortiger Wirkung folgender Beschluss in Kraft:<br>
Weil es in letzter Zeit bei Zulieferanten immer wieder zu Fehlinterpretationen der Zeichnung und daraus resultierend zu Fehllieferungen kam, darf in Zukunft auf Zeichnungen keine Allgemeintoleranztabelle dargestellt werden.<br>
Die Zeichnungstemplates wurden entsprechend angepasst.<br><br>
Im Zug einer Änderung, muss auch bei bestehenden Zeichnungen, eine vorhandene Allgemeintoleranztabelle entfernt werden.<br>
Bisher:<br>
<img alt="Bisher" class="auto-style5" height="128" src="../pictures/Bisher.png" width="410"><br>
Zukunft:<br>
<img alt="Zukunft" class="auto-style5" height="128" src="../pictures/Zukunft.png" width="410">
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Instruction.png" width="48" height="48">[/Info]
[Date]12.02.2018[/Date]
[Head]Laderegel ge&auml;ndert[/Head]
[Text]
Aufgrund von Problemen beim &Ouml;ffnen von Zeichnungen in NX (Teile werden mit der Laderegel ENGEL_Precise automatisch upgedatet), wurde die Default Laderegel in Teamcenter wieder auf <b>Precise Only</b> gesetzt.<br><br>
Wenn jemand <b>ENGEL_Precise</b> als Default verwenden m&ouml;chte, ist das nach wie vor über Teamcenter Option m&ouml;glich.<br><br>
Die &Auml;nderung ist ab n&auml;chstem Teamcenter Neustart aktiv.
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Tips.png" width="48" height="48">[/Info]
[Date]30.01.2018[/Date]
[Head]Beste Methode: &Uuml;bung 3 der Blech Schulung[/Head]
[Text]
Das Dokument <a href="https://engelwiki.engel.int/pages/viewpage.action?pageId=28476587"target="_blank" style="text-decoration: none;">Best practise for sheet_metal_excercise3 (0739-300-24-91-P002)</a> beschreibt die beste Methode für das &Uuml;bungsbeispiel 3 der Blech Schulung.
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Tips.png" width="48" height="48">[/Info]
[Date]25.01.2018[/Date]
[Head]NX Information Center zurückholen[/Head]
[Text]
Nachdem NX 30 mal gestartet wurde, fragt NX ob die Willkommenseite zuk&uuml;nftig nicht mehr angezeigt werden soll.<br>
Wird diese Frage mit <b>Ja</b> beantwortet, wird auch das <b><i>NX Information Center</b></i> nicht mehr angezeigt.<br><br>
Mit den folgenden Schritten kann das NX Information Center zur&uuml;ckgeholt werden:<br>
- NX Starten.<br>
- Die Funktion <b>Datei</b> | <b>Voreinstellung</b> | <b>Benutzeroberfl&auml;che...</b> aufrufen.<br>
- In der Gruppe <b>Optionen</b> im Bereich <b>Benutzer-Feedback</b> die Taste <b>Startseite zur&uuml;cksetzen</b> ausw&auml;hlen.<br><br>
Beim n&auml;chsten Neustart von NX sollte dann das <b><i>NX Information Center</b></i> wieder erscheinen.<br><br>
<b>WICHTIG:</b><br>Wenn NX nach 30 Starts wieder die Abfrage anzeigt, dann diese nicht mit <b>Ja</b> sondern <b>Nein - Nicht mehr Fragen</b> schlie&szlig;en.
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Tips.png" width="48" height="48">[/Info]
[Date]20.12.2017[/Date]
[Head]Einschr&auml;nkung der Zeilenanzahl einer Tabellennotiz aufheben[/Head]
[Text]
Es kann vorkommen, dass l&auml;ngere Tabellennotizen beim Einf&uuml;gen in mehrere Einzeltabellen aufgespalten werden.<br>
Wie sie das verhindern k&ouml;nnen, erfahren Sie im Dokument <a href="https://engelwiki.engel.int/pages/viewpage.action?pageId=27885794"target="_blank" style="text-decoration: none;">Einschr&auml;nkung der Zeilenanzahl einer Tabellennotiz aufheben</a>.
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Information.png" width="48" height="48">[/Info]
[Date]19.12.2017[/Date]
[Head]Qualit&auml;tsanforderung an Importierte Geometrien[/Head]
[Text]
Um die Qualit&auml;t für importierte Teile zu steigern gibt es ab sofort eine Richtlinie wie bei einem Import vorzugehen ist. Diese Richtlinie ist noch nicht endg&uuml;ltig soll aber ab sofort als Hilfestellung dienen.<br>
Genaueres erfahren Sie im Dokument <a href="https://engelwiki.engel.int/pages/viewpage.action?pageId=27332313"target="_blank" style="text-decoration: none;">Quality requironments for imported geometries</a>.
[/Text]
[Html][/Html]
[NextStep]
[Info]<img border="0" src="..\pictures\Information.png" width="48" height="48">[/Info]
[Date]01.12.2017[/Date]
[Head]Iniziale Information[/Head]
[Text]
In unregelm&auml;&szligigen Abst&auml;nden werden hier Informationen zu und um NX gepostet.<br>
Dabei kann es sich um Mitteilungen, Tipps und Tricks aber auch um Warnungen handeln.<br>
Die erste Spalte zeigt den Mitteilungstyp an und die zweite Spalte das Datum der Ver&ouml;ffentlichung.<br>
Die Eintr&auml;ge sind Hierachisch, das bedeutet, der oberste Eintrag ist der aktuellste.<br><br>
Unter dem Navigationsschalter <img alt="Hilfe" class="auto-style5" height="25" src="../pictures/Help_de.jpg" width="62"> werden alle Funktionen genauer beschrieben.<br><br>
Haben Sie Informationen, die auch andere NX Anwender interessieren k&ouml;nnten, dann teilen Sie uns das bitte mit.<br>
Das NX-Support-Team kann sie hier f&uuml;r alle NX-Anwender sichtbar ver&ouml;ffentlichen.
[/Text]
[Html][/Html]

View File

@ -0,0 +1,22 @@
[Head]NX11110[/Head]
[Text]
Available: 100, In use: 20, Version: 31.0, Vendor: ugslmd, License type: floating
<!-- Licenseworkload-DivElemente -->
<div class='licenseworkload_box' id='licenseworkload_box'>
<div class='licenseworkload_bar' id='licenseworkload_bar'></div>
<div class='licenseworkload_text' id='licenseworkload_text'>abc</div>
</div>
[/Text]
[Html]<a href="javascript:setPercent(50)">=50%</a>[/Html]
[NextStep]
[Head]NX12345[/Head]
[Text]
Available: 50, In use: 10, Version: 31.0, Vendor: ugslmd, License type: floating
<!-- Licenseworkload-DivElemente -->
<div class='licenseworkload_box' id='licenseworkload_box'>
<div class='licenseworkload_bar' id='licenseworkload_bar'></div>
<div class='licenseworkload_text' id='licenseworkload_text'>xyz</div>
</div>
[/Text]
[Html][/Html]

View File

@ -0,0 +1,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Workload View</title>
<!-- Auslastungsanzeige einbinden -->
<script type="text/javascript" src="licenseworkload/licenseworkload.js"></script>
<link rel="stylesheet" type="text/css" href="licenseworkload/licenseworkload.css" />
</head>
<body style='background-color: #8D8C8B;'>
<!-- Lizenz Name -->
<div class='licenseworkload_licensename' id='licenseworkload_licensename'>NX11110
<!-- Lizenz Attribute -->
<div class='licenseworkload_attributes' id='licenseworkload_attributes'>License available: 100, License in use: 20, Version: 31.0, Vendor: ugslmd, License type: floating
<!-- Licenseworkload-DivElemente -->
<div class='licenseworkload_box' id='licenseworkload_box'>
<div class='licenseworkload_bar' id='licenseworkload_bar'></div>
<div class='licenseworkload_text' id='licenseworkload_text'>xyz</div>
</div>
</div>
</div>
<!-- Auslastungsanzeige Prozentwerte setzen -->
<ul>
<li><a href="javascript:addPercent(5)">+5</a></li>
<li><a href="javascript:addPercent(10)">+10</a></li>
<li><a href="javascript:addPercent(20)">+20</a></li>
<li><a href="javascript:addPercent(-5)">-5</a></li>
<li><a href="javascript:addPercent(-10)">-10</a></li>
<li><a href="javascript:addPercent(-20)">-20</a></li>
<li><a href="javascript:setPercent(0)">=0%</a></li>
<li><a href="javascript:setPercent(50)">=50%</a></li>
<li><a href="javascript:setPercent(100)">=100%</a></li>
</ul>
<!-- initialer Aufruf der Statusleiste -->
<script type="text/javascript">
setDescription('Licenses in use:');
main(0);
</script>
</body>
</html>

View File

@ -0,0 +1,75 @@
.licenseworkload_licensename
{
position: relative;
top: 20px;
left: 20px;
width: 100%;
height: 100%;
line-height: 30px;
text-align: left;
font-size: 28px;
color: #ffffff;
font-family: calibri;
font-weight: bold;
border-style: solid;
border-width: 0px;
z-index: 1;
}
.licenseworkload_attributes
{
position: relative;
top: 0px;
left: 20px;
width: 100%;
height: 100%;
line-height: 20px;
text-align: left;
font-size: 18px;
color: #000000;
font-family: calibri;
font-weight: normal;
border-style: solid;
border-width: 0px;
z-index: 1;
}
.licenseworkload_box
{
height: 20px;
position: relative;
top: 5px;
margin: 0px 10px 0px 10px;
border-style: solid;
border-width: 2px;
border-color: #000000;
background-color: #00ff00;
z-index: 1;
}
.licenseworkload_bar
{
position: absolute;
width: 0%;
height: 100%;
border-style: solid;
border-width: 0px;
background-color: #ff0000;
z-index: 2;
}
.licenseworkload_text
{
position: relative;
width: 100%;
height: 100%;
line-height: 20px; /*wie licenseworkload_box.height*/
text-align: center;
font-size: 18px;
color: #ffffff;
font-family: calibri;
font-weight: bold;
border-style: solid;
border-width: 0px;
z-index: 3;
}

View File

@ -0,0 +1,76 @@
.licenseworkload_licensename
{
position: relative;
top: 20px;
left: 20px;
width: 100%;
height: 100%;
line-height: 30px;
text-align: left;
font-size: 28px;
color: #ffffff;
font-family: calibri;
font-weight: bold;
border-style: solid;
border-width: 0px;
z-index: 1;
}
.licenseworkload_attributes
{
position: relative;
top: 0px;
left: 20px;
width: 100%;
height: 100%;
line-height: 20px;
text-align: left;
font-size: 18px;
color: #000000;
font-family: calibri;
font-weight: normal;
border-style: solid;
border-width: 0px;
z-index: 1;
}
.licenseworkload_box
{
width: 90%;
height: 20px;
position: relative;
top: 5px;
left: 0px;
border-style: solid;
border-width: 2px;
border-color: #000000;
background-color: #00ff00;
z-index: 1;
}
.licenseworkload_bar
{
position: absolute;
width: 0%;
height: 100%;
border-style: solid;
border-width: 0px;
background-color: #ff0000;
z-index: 2;
}
.licenseworkload_text
{
position: relative;
width: 100%;
height: 100%;
line-height: 20px; /*wie licenseworkload_box.height*/
text-align: center;
font-size: 18px;
color: #ffffff;
font-family: calibri;
font-weight: bold;
border-style: solid;
border-width: 0px;
z-index: 3;
}

View File

@ -0,0 +1,80 @@
/**
* stellt den aktuellen Prozentwert dar
*/
var percentValue = 0;
/**
* Die Beschreibung, welche vor der Prozentzahl in den Balkengeschrieben wird.
*/
var description = "";
/**
* setzt den ersten Aufruf der Auslastungsanzeige. Wichtig da die globale Variable
* percentValue damit gesetzt wird.
* @param value: mit welchen Wert in % soll angefangen werden.
*/
function main(value)
{
setPercent(value);
}
/**
* setzt die Beschreibung welche in die Statuszeile vor den Prozentwert geschrieben wird.
* @param value: Statusbeschreibung
*/
function setDescription(value)
{
description = value;
}
/**
* Gibt den akutellen Prozentwert der Statuszeile zurück.
* @return: akuteller Prozentwert
*/
function getPercent()
{
return percentValue;
}
/**
* rechnet Prameter value auf die bestehende Prozentzahl drauf oder ab.
* @param value: Wert der auf den Prozentbalken addiert werden soll,
* es können auch negative Werte übergeben werden.
*/
function addPercent(value)
{
//akutellen Prozentsatz ausrechnen
var p = percentValue;
p += value;
//nicht über 100 und unter 0
if (p>100) {p=100;}
if (p<0) {p=0;}
//globalen merker schreiben
percentValue = p;
//Textanzeigen
setPercentText(p);
//setzen
document.all.licenseworkload_bar.style.width = parseInt(p)+'%';
}
/**
* Setzt den Prozenttext.
* @param value: Prozentwert als Integer
*/
function setPercentText(value)
{
licenseworkload_text.innerHTML = description + " " + parseInt(value)+" %";
}
/**
* setzt einen absoluten Wert in die Auslastungsanzeige.
* @param value: Prozentwert (0 bis 100)
*/
function setPercent(value)
{
//nicht über 100 und unter 0
if (value>100) {value=100;}
if (value<0) {value=0;}
//globalen merker schreiben
percentValue = value;
//Textanzeigen
setPercentText(value);
//Prozentwert setzen mit Prozentzeichen
document.all.licenseworkload_bar.style.width = parseInt(value)+'%';
}

View File

@ -0,0 +1,243 @@
<html>
<head>
<meta http-equiv="Content-Language" content="de">
<title>User Interface</title>
<title>User Interface</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ENGEL NX Information Center</title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="source/content.css">
<style type="text/css">
.style3
{
font-weight: bold;
}
.style6
{
color: #000000;
}
.n12 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; font-weight: normal; }
.n11 { font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none; font-weight: normal;}
.style7
{
font-family: Calibri;
text-decoration: underline;
}
.style14
{
font-family: Calibri;
font-size: x-small;
text-decoration: none;
font-weight: normal;
}
.style16
{
font-size: x-small;
}
.style17
{
font-size: medium;
font-family: Calibri;
}
.style24
{
font-size: x-small;
color: #000000;
}
.style25
{
background-color: #E8E8E8;
}
.style26
{
color: #FFFFFF;
background-color: #E8E8E8;
}
.style28
{
color: #000000;
background-color: #E8E8E8;
}
.style29
{
color: #FFFFFF;
background-color: #808080;
}
.style30
{
font-family: Calibri;
}
.style31
{
font-weight: bold;
font-family: Calibri;
}
.style32
{
font-size: x-small;
font-family: Calibri;
}
</style>
</head>
<body style="text-align: left; background-color:#DCDCDC">
<script type="text/javascript">
function SetSearch (sea)
{
search = sea;
}
function PrintIt ()
{
var search = getURLParam("search");
if (search.length == 0)
search = "%";
var HugoArr = new Array();
var txtFile=false;
try {
txtFile= new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
txtFile = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
txtFile = false;
}
}
if (!txtFile && typeof XMLHttpRequest!='undefined') {
try {
txtFile = new XMLHttpRequest();
} catch (e) {
txtFile=false;
}
}
if (!txtFile && window.createRequest) {
try {
txtFile = window.createRequest();
} catch (e) {
txtFile=false;
}
}
txtFile.open("GET", "content_de.txt", false);
txtFile.onreadystatechange = function()
{
if (txtFile.readyState === 4)
{
if (txtFile.status == 0)
{
allText = txtFile.responseText;
var textArr = allText.split("[NextStep]");
var y = 0;
for (var i = textArr.length - 1; i > -1; i--)
{
var text = textArr[i];
HugoArr[y] = new Object();
HugoArr[y][0] = text.substr(text.indexOf("[Info]") + 6, text.indexOf("[/Info]") - text.indexOf("[Info]") - 6)
HugoArr[y][1] = text.substr(text.indexOf("[Date]") + 6, text.indexOf("[/Date]") - text.indexOf("[Date]") - 6)
HugoArr[y][2] = text.substr(text.indexOf("[Head]") + 6, text.indexOf("[/Head]") - text.indexOf("[Head]") - 6)
HugoArr[y][3] = text.substr(text.indexOf("[Text]") + 6, text.indexOf("[/Text]") - text.indexOf("[Text]") - 6)
HugoArr[y][4] = text.substr(text.indexOf("[Html]") + 6, text.indexOf("[/Html]") - text.indexOf("[Html]") - 6)
y++;
}
}
}
}
txtFile.send(null);
for (var i = HugoArr.length - 1; i > -1; i--)
{
var hug = HugoArr[i];
var inter = hug[0];
var dat = hug[1];
var head = hug[2];
var txt = hug[3];
var htm = hug[4];
search = search.toLowerCase();
if (head.toLowerCase().indexOf(search, 0) >= 0 || txt.toLowerCase().indexOf(search, 0) >= 0 || htm.toLowerCase().indexOf(search) >= 0 || search == "%")
{
var colorNew = "style29";
var colorOld = "style28";
var color = colorOld;
var now = new Date();
var datumArr = dat.split('.');
var datum = new Date(datumArr[2], datumArr[1]-1, datumArr[0]);
var diff = now - datum;
var days = diff / 1000 / 60 / 60 / 24;
days = Math.round(days);
if (days <= 3 && diff > 0)
{
color = colorNew;
}
document.write('<table border="1" width="100%" id="table6" style="border-width: 0px"><tr>');
document.write('<td style="border-style: none; border-width: medium" width="50" align="left" valign="middle" class="' + color + '">');
document.write('<p align="center"><font face="Calibri">' + inter + '</font></td></p>');
document.write('<td style="border-style: none; border-width: medium" width="100" valign="middle" class="' + color + '">');
document.write('<p align="center"><font face="Calibri">' + dat + '</font></p></td>');
document.write('<td style="border-style: none; border-width: medium" class="' + color + '">');
if (head.length > 0)
{
document.write('<b><span class="style17">' + head + '</span></b><br><br>');
}
if (txt.length > 0)
{
document.write('<span class="style30">' + txt + '</span><br>');
}
document.write(htm);
document.write('</td></tr></table>');
}
}
}
function getURLParam(strParamName)
{
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("?") > -1 )
{
var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
{
if (aQueryString[iParam].indexOf(strParamName + "=") > -1 )
{
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;
}
}
}
return strReturn;
}
</script>
<script type="text/javascript">
var nosearch = getURLParam("nosrch");
if (nosearch.indexOf("yes") == -1)
{
document.write('<form method="get">');
document.write('<input name="search" type="text" id="search" />');
document.write('<input type="submit" value="Suchen" onclick="DoIt();" />');
document.write('</form>');
document.getElementById("search").value = getURLParam("search");
}
PrintIt();
</script>
</body>
</html>

View File

@ -0,0 +1,216 @@
<html>
<head>
<meta http-equiv="Content-Language" content="de">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ENGEL License Workload View</title>
<base target="_self">
<!-- Auslastungsanzeige einbinden -->
<script type="text/javascript" src="licenseworkload/licenseworkload.js"></script>
<link rel="stylesheet" type="text/css" href="licenseworkload/content.css" />
<style type="text/css">
.style3
{
font-weight: bold;
}
.style6
{
color: #000000;
}
.n12 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; font-weight: normal; }
.n11 { font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none; font-weight: normal;}
.style7
{
font-family: Calibri;
text-decoration: underline;
}
.style14
{
font-family: Calibri;
font-size: x-small;
text-decoration: none;
font-weight: normal;
}
.style16
{
font-size: x-small;
}
.style17
{
font-size: medium;
font-family: Calibri;
}
.style24
{
font-size: x-small;
color: #000000;
}
.style25
{
background-color: #E8E8E8;
}
.style26
{
color: #FFFFFF;
background-color: #E8E8E8;
}
.style28
{
color: #000000;
background-color: #E8E8E8;
}
.style29
{
color: #FFFFFF;
background-color: #808080;
}
.style30
{
font-family: Calibri;
}
.style31
{
font-weight: bold;
font-family: Calibri;
}
.style32
{
font-size: x-small;
font-family: Calibri;
}
</style>
</head>
<body style="text-align: left; background-color:#DCDCDC">
<!-- initialer Aufruf der Statusleiste -->
<script type="text/javascript">
setDescription('Licenses in use:');
main(0);
</script>
<script type="text/javascript">
function PrintIt ()
{
var search = getURLParam("search");
if (search.length == 0)
search = "%";
var HugoArr = new Array();
var txtFile=false;
try {
txtFile= new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
txtFile = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
txtFile = false;
}
}
if (!txtFile && typeof XMLHttpRequest!='undefined') {
try {
txtFile = new XMLHttpRequest();
} catch (e) {
txtFile=false;
}
}
if (!txtFile && window.createRequest) {
try {
txtFile = window.createRequest();
} catch (e) {
txtFile=false;
}
}
txtFile.open("GET", "content_de.txt", false);
txtFile.onreadystatechange = function()
{
if (txtFile.readyState === 4)
{
if (txtFile.status == 0)
{
allText = txtFile.responseText;
var textArr = allText.split("[NextStep]");
var y = 0;
for (var i = textArr.length - 1; i > -1; i--)
{
var text = textArr[i];
HugoArr[y] = new Object();
HugoArr[y][0] = text.substr(text.indexOf("[Head]") + 6, text.indexOf("[/Head]") - text.indexOf("[Head]") - 6)
HugoArr[y][1] = text.substr(text.indexOf("[Text]") + 6, text.indexOf("[/Text]") - text.indexOf("[Text]") - 6)
HugoArr[y][2] = text.substr(text.indexOf("[Html]") + 6, text.indexOf("[/Html]") - text.indexOf("[Html]") - 6)
y++;
}
}
}
}
txtFile.send(null);
for (var i = HugoArr.length - 1; i > -1; i--)
{
var hug = HugoArr[i];
var head = hug[0];
var txt = hug[1];
var htm = hug[2];
if (head.toLowerCase().indexOf(search, 0) >= 0 || txt.toLowerCase().indexOf(search, 0) >= 0 || htm.toLowerCase().indexOf(search) >= 0 || search == "%")
{
var color = "style28";
document.write('<table border="1" width="100%" id="table6" style="border-width: 0px"><tr>');
document.write('<td style="border-style: none; border-width: medium" width="50" align="left" valign="middle" class="' + color + '">');
if (head.length > 0)
{
document.write('<b><span class="style17">' + head + '</span></b><br><br>');
}
if (txt.length > 0)
{
document.write('<span class="style30">' + txt + '</span><br>');
}
document.write(htm);
document.write('</td></tr></table>');
}
}
}
function getURLParam(strParamName)
{
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("?") > -1 )
{
var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
{
if (aQueryString[iParam].indexOf(strParamName + "=") > -1 )
{
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;
}
}
}
return strReturn;
}
</script>
<script type="text/javascript">
var nosearch = getURLParam("nosrch");
PrintIt();
</script>
</body>
</html>

18
NxLizenz.sln Normal file
View File

@ -0,0 +1,18 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 5.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NxLizenz", "NxLizenz\NxLizenz.csproj", "{D38D6511-4369-4CAB-B4F2-50904A52B788}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D38D6511-4369-4CAB-B4F2-50904A52B788}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D38D6511-4369-4CAB-B4F2-50904A52B788}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D38D6511-4369-4CAB-B4F2-50904A52B788}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D38D6511-4369-4CAB-B4F2-50904A52B788}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

31
NxLizenz/License.cs Normal file
View File

@ -0,0 +1,31 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 05.04.2018
* Zeit: 11:21
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
namespace NxLizenz
{
/// <summary>
/// Description of License.
/// </summary>
public class License
{
public string LicenseName { set; get; }
public int LicensesTotal { set; get; }
public int LicensesInUse { set; get; }
public string LicenseVersion { set; get; }
public string LicenseVendor { set; get; }
public string LicenseType { set; get; } //z.B.: floating
public License()
{
}
}
}

View File

@ -0,0 +1,66 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 12:19
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace NxLizenz
{
/// <summary>
/// Description of LicenseItem.
/// </summary>
public partial class LicenseItem : UserControl
{
public int Available { set; get; }
public int InUse { set; get; }
public string LicName { set; get; }
public string Version { set; get; }
public string Vendor { set; get; }
public string Type { set; get; }
public int Percent { set; get; }
public LicenseItem()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
public void ShowCurrentValues()
{
LicenseName.Text = LicName;
labelAvailable.Text = String.Concat("Available: ", Available);
labelInUse.Text = String.Concat("In use: ", InUse);
labelVersion.Text = String.Concat("Version: ", Version);
labelVendor.Text = String.Concat("Vendor: ", Vendor);
labelType.Text = String.Concat("Type: ", Type);
Percent = (int)((double)InUse / Available * 100);
progressBarInUse.Value = Percent;
int percent = (int)(((double)(progressBarInUse.Value - progressBarInUse.Minimum) / (double)(progressBarInUse.Maximum - progressBarInUse.Minimum)) * 100);
using (Graphics gr = progressBarInUse.CreateGraphics())
{
gr.DrawString("In use: " + percent.ToString() + "%",
SystemFonts.DefaultFont,
Brushes.Black,
new PointF(progressBarInUse.Width / 2 - (gr.MeasureString("In use: " + percent.ToString() + "%",
SystemFonts.DefaultFont).Width / 2.0F),
progressBarInUse.Height / 2 - (gr.MeasureString("In use: " + percent.ToString() + "%",
SystemFonts.DefaultFont).Height / 2.0F)));
}
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
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.
Example:
... ado.net/XML 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/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
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/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
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="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<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:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,135 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 12:19
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
namespace NxLizenz
{
partial class LicenseItem
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
private System.Windows.Forms.Label LicenseName;
private System.Windows.Forms.Label labelAvailable;
private System.Windows.Forms.Label labelInUse;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label labelVendor;
private System.Windows.Forms.Label labelType;
private System.Windows.Forms.ProgressBar progressBarInUse;
/// <summary>
/// Disposes resources used by the control.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.LicenseName = new System.Windows.Forms.Label();
this.labelAvailable = new System.Windows.Forms.Label();
this.labelInUse = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
this.labelVendor = new System.Windows.Forms.Label();
this.labelType = new System.Windows.Forms.Label();
this.progressBarInUse = new System.Windows.Forms.ProgressBar();
this.SuspendLayout();
//
// LicenseName
//
this.LicenseName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LicenseName.Location = new System.Drawing.Point(3, 0);
this.LicenseName.Name = "LicenseName";
this.LicenseName.Size = new System.Drawing.Size(612, 33);
this.LicenseName.TabIndex = 0;
this.LicenseName.Text = "NX11110";
//
// labelAvailable
//
this.labelAvailable.Location = new System.Drawing.Point(4, 33);
this.labelAvailable.Name = "labelAvailable";
this.labelAvailable.Size = new System.Drawing.Size(100, 23);
this.labelAvailable.TabIndex = 2;
this.labelAvailable.Text = "Available: 100";
//
// labelInUse
//
this.labelInUse.Location = new System.Drawing.Point(134, 33);
this.labelInUse.Name = "labelInUse";
this.labelInUse.Size = new System.Drawing.Size(100, 23);
this.labelInUse.TabIndex = 3;
this.labelInUse.Text = "In use: 20";
//
// labelVersion
//
this.labelVersion.Location = new System.Drawing.Point(264, 33);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(100, 23);
this.labelVersion.TabIndex = 4;
this.labelVersion.Text = "Version: 31.0";
//
// labelVendor
//
this.labelVendor.Location = new System.Drawing.Point(394, 33);
this.labelVendor.Name = "labelVendor";
this.labelVendor.Size = new System.Drawing.Size(100, 23);
this.labelVendor.TabIndex = 5;
this.labelVendor.Text = "Vendor: ugslmd";
//
// labelType
//
this.labelType.Location = new System.Drawing.Point(524, 33);
this.labelType.Name = "labelType";
this.labelType.Size = new System.Drawing.Size(100, 23);
this.labelType.TabIndex = 6;
this.labelType.Text = "Type: floating";
//
// progressBarInUse
//
this.progressBarInUse.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressBarInUse.BackColor = System.Drawing.Color.Red;
this.progressBarInUse.ForeColor = System.Drawing.SystemColors.ControlText;
this.progressBarInUse.Location = new System.Drawing.Point(4, 54);
this.progressBarInUse.Name = "progressBarInUse";
this.progressBarInUse.Size = new System.Drawing.Size(601, 23);
this.progressBarInUse.Step = 1;
this.progressBarInUse.TabIndex = 7;
this.progressBarInUse.Value = 20;
//
// LicenseItem
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.progressBarInUse);
this.Controls.Add(this.labelType);
this.Controls.Add(this.labelVendor);
this.Controls.Add(this.labelVersion);
this.Controls.Add(this.labelInUse);
this.Controls.Add(this.labelAvailable);
this.Controls.Add(this.LicenseName);
this.MaximumSize = new System.Drawing.Size(618, 80);
this.Name = "LicenseItem";
this.Size = new System.Drawing.Size(618, 80);
this.ResumeLayout(false);
}
}
}

119
NxLizenz/LicenseItem.Designer.cs generated Normal file
View File

@ -0,0 +1,119 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 12:19
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
namespace NxLizenz
{
partial class LicenseItem
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
private System.Windows.Forms.Label LicenseName;
private System.Windows.Forms.Label labelAvailable;
private System.Windows.Forms.Label labelInUse;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label labelVendor;
private System.Windows.Forms.Label labelType;
/// <summary>
/// Disposes resources used by the control.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.LicenseName = new System.Windows.Forms.Label();
this.labelAvailable = new System.Windows.Forms.Label();
this.labelInUse = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
this.labelVendor = new System.Windows.Forms.Label();
this.labelType = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// LicenseName
//
this.LicenseName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LicenseName.Location = new System.Drawing.Point(3, 0);
this.LicenseName.Name = "LicenseName";
this.LicenseName.Size = new System.Drawing.Size(612, 33);
this.LicenseName.TabIndex = 0;
this.LicenseName.Text = "NX11110";
//
// labelAvailable
//
this.labelAvailable.Location = new System.Drawing.Point(4, 33);
this.labelAvailable.Name = "labelAvailable";
this.labelAvailable.Size = new System.Drawing.Size(100, 20);
this.labelAvailable.TabIndex = 2;
this.labelAvailable.Text = "Available: 100";
//
// labelInUse
//
this.labelInUse.Location = new System.Drawing.Point(134, 33);
this.labelInUse.Name = "labelInUse";
this.labelInUse.Size = new System.Drawing.Size(100, 20);
this.labelInUse.TabIndex = 3;
this.labelInUse.Text = "In use: 20";
//
// labelVersion
//
this.labelVersion.Location = new System.Drawing.Point(264, 33);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(100, 20);
this.labelVersion.TabIndex = 4;
this.labelVersion.Text = "Version: 31.0";
//
// labelVendor
//
this.labelVendor.Location = new System.Drawing.Point(394, 33);
this.labelVendor.Name = "labelVendor";
this.labelVendor.Size = new System.Drawing.Size(100, 20);
this.labelVendor.TabIndex = 5;
this.labelVendor.Text = "Vendor: ugslmd";
//
// labelType
//
this.labelType.Location = new System.Drawing.Point(524, 33);
this.labelType.Name = "labelType";
this.labelType.Size = new System.Drawing.Size(100, 20);
this.labelType.TabIndex = 6;
this.labelType.Text = "Type: floating";
//
// LicenseItem
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.labelType);
this.Controls.Add(this.labelVendor);
this.Controls.Add(this.labelVersion);
this.Controls.Add(this.labelInUse);
this.Controls.Add(this.labelAvailable);
this.Controls.Add(this.LicenseName);
this.MaximumSize = new System.Drawing.Size(618, 80);
this.Name = "LicenseItem";
this.Size = new System.Drawing.Size(618, 80);
this.ResumeLayout(false);
}
}
}

91
NxLizenz/LicenseItem.cs Normal file
View File

@ -0,0 +1,91 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 12:19
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace NxLizenz
{
/// <summary>
/// Description of LicenseItem.
/// </summary>
public partial class LicenseItem : UserControl
{
public int Available { set; get; }
public int InUse { set; get; }
public string LicName { set; get; }
public string Version { set; get; }
public string Vendor { set; get; }
public string Type { set; get; }
public int Percent { set; get; }
public int ProgressBarLenght { set; get; }
public int Threshold { set; get; }
public LicenseItem()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
ProgressBarLenght = 610;
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
int endPosX = 5 + Threshold;
using (var pen = new Pen(Color.Red, 24))
{
e.Graphics.DrawLine(pen, 5, 66, endPosX, 66);
}
}
private void pictureBox2_Paint(object sender, PaintEventArgs e)
{
int startPosX = 5 + Threshold;
int endPos = 5 + ProgressBarLenght;
using (var pen = new Pen(Color.Lime, 24))
{
e.Graphics.DrawLine(pen, startPosX, 66, endPos, 66);
}
}
private void pictureBox3_Paint(object sender, PaintEventArgs e)
{
using (var myFont = new Font("Arial", 12))
{
e.Graphics.DrawString("In use: " + Percent + "%", myFont, Brushes.Black, new Point(ProgressBarLenght / 2 - 73, 56));
}
}
public void ShowCurrentValues()
{
LicenseName.Text = LicName;
labelAvailable.Text = String.Concat("Available: ", Available);
labelInUse.Text = String.Concat("In use: ", InUse);
labelVersion.Text = String.Concat("Version: ", Version);
labelVendor.Text = String.Concat("Vendor: ", Vendor);
labelType.Text = String.Concat("Type: ", Type);
Percent = (int)((double)InUse / Available * 100);
Threshold = (int)((Double)ProgressBarLenght / 100 * Percent);
Paint += pictureBox1_Paint;
Paint += pictureBox2_Paint;
Paint += pictureBox3_Paint;
}
}
}

120
NxLizenz/LicenseItem.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
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.
Example:
... ado.net/XML 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/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
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/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
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="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<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:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

38
NxLizenz/LicensesList.cs Normal file
View File

@ -0,0 +1,38 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 14:55
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
namespace NxLizenz
{
/// <summary>
/// Description of LicensesList.
/// </summary>
public class LicensesList
{
List<License> licenses = new List<License>();
public List<License> AllLicenses
{
get
{
return licenses;
}
}
public LicensesList()
{
licenses.Clear();
}
public void Add(License license)
{
licenses.Add(license);
}
}
}

95
NxLizenz/MainForm.Designer.cs generated Normal file
View File

@ -0,0 +1,95 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 05.04.2018
* Zeit: 10:40
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
namespace NxLizenz
{
partial class MainForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
private System.Windows.Forms.ComboBox comboBoxSelectLicenseServer;
private System.Windows.Forms.Label labelSelectServer;
private System.Windows.Forms.Button buttonEvaluate;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.comboBoxSelectLicenseServer = new System.Windows.Forms.ComboBox();
this.labelSelectServer = new System.Windows.Forms.Label();
this.buttonEvaluate = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// comboBoxSelectLicenseServer
//
this.comboBoxSelectLicenseServer.FormattingEnabled = true;
this.comboBoxSelectLicenseServer.Items.AddRange(new object[] {
"28000@EMSCADLIC",
"28000@EMSEDULIC"});
this.comboBoxSelectLicenseServer.Location = new System.Drawing.Point(12, 35);
this.comboBoxSelectLicenseServer.Name = "comboBoxSelectLicenseServer";
this.comboBoxSelectLicenseServer.Size = new System.Drawing.Size(268, 21);
this.comboBoxSelectLicenseServer.TabIndex = 0;
this.comboBoxSelectLicenseServer.Text = "Select License Server";
this.comboBoxSelectLicenseServer.SelectedIndexChanged += new System.EventHandler(this.ComboBoxSelectLicenseServerSelectedIndexChanged);
//
// labelSelectServer
//
this.labelSelectServer.Location = new System.Drawing.Point(12, 9);
this.labelSelectServer.Name = "labelSelectServer";
this.labelSelectServer.Size = new System.Drawing.Size(100, 23);
this.labelSelectServer.TabIndex = 1;
this.labelSelectServer.Text = "License Server";
//
// buttonEvaluate
//
this.buttonEvaluate.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonEvaluate.Location = new System.Drawing.Point(338, 14);
this.buttonEvaluate.Name = "buttonEvaluate";
this.buttonEvaluate.Size = new System.Drawing.Size(225, 41);
this.buttonEvaluate.TabIndex = 2;
this.buttonEvaluate.Text = "Evaluate Server";
this.buttonEvaluate.UseVisualStyleBackColor = true;
this.buttonEvaluate.Click += new System.EventHandler(this.ButtonEvaluateClick);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(632, 72);
this.Controls.Add(this.buttonEvaluate);
this.Controls.Add(this.labelSelectServer);
this.Controls.Add(this.comboBoxSelectLicenseServer);
this.MaximumSize = new System.Drawing.Size(680, 600);
this.Name = "MainForm";
this.Text = "NX Lizenz Monitor";
this.ResumeLayout(false);
}
}
}

386
NxLizenz/MainForm.cs Normal file
View File

@ -0,0 +1,386 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 05.04.2018
* Zeit: 10:40
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
namespace NxLizenz
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
#region Version und Copyright
// Version und Copyright
string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
string version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
string copyright = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit
static DateTime value = AssemblyDateTime();
string date = value.ToShortDateString();
string time = value.ToLongTimeString();
private static DateTime AssemblyDateTime()
{
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan( TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision));
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
return buildDateTime;
}
#endregion
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
string licenseName = "";
int licensesTotal = 0;
int licensesInUse = 0;
string licenseVersion = "";
string licenseVendor = "";
string licenseType = "";
List<User> tUsers = new List<User>();
private string LicenseServer { set; get; }
private LicensesList licenseList = new LicensesList();
// private Users users = new Users();
private UserList userList = new UserList();
void ComboBoxSelectLicenseServerSelectedIndexChanged(object sender, EventArgs e)
{
LicenseServer = comboBoxSelectLicenseServer.SelectedItem.ToString();
}
void ButtonEvaluateClick(object sender, EventArgs e)
{
if (!String.IsNullOrEmpty(LicenseServer))
{
Start(sender, e);
}
}
private void Start(object sender, EventArgs e)
{
//TODO: Lizenzen lesen
string fileName = @"H:\Programmieren\SharpDevelop\NxLizenz\Daten\149_UGS_LICENSE_FILE.txt";
//TODO: Lizenzliste füllen
if (licenseList.AllLicenses.Count == 0)
{
ReadLicenseFile(fileName);
}
DrawDisplay(licenseList.AllLicenses.Count, sender, e);
}
private void ReadLicenseFile(string fileName)
{
using (var sr = new StreamReader(fileName, Encoding.Default))
{
bool read = false;
bool secondLine = false;
bool nextLine = false;
int emptyLine = 0;
string line = "";
int count = -1;
//Datei zeilenweise einlesen bis das Ende der Datei erreicht ist
while (!sr.EndOfStream)
{
line = sr.ReadLine(); //Zeile einlesen
if (read)
{
if (line.StartsWith("Users of "))
{
count ++;
Users users = new Users();
if (emptyLine == 1)
{
//User einlesen
ExtractUser("", count - 1);
//Wenn ein neuer Block beginnt, dann die ermittelten Werte schreiben
WriteLicenceValueBlock(count - 1);
emptyLine = 0;
}
if (emptyLine == 3)
{
//Wenn ein neuer Block beginnt, dann die ermittelten Werte schreiben
WriteLicenceValueBlock(count - 1);
emptyLine = 0;
}
//LicenseName, LicenseTotal und LicenseUsed extrahieren
var license = new License();
ExtractLicenses(line, count);
}
if (String.IsNullOrEmpty(line))
{
emptyLine ++;
}
if (secondLine)
{
secondLine = false; //Wieder zurücksetzen
//Den Lizentyp aus der Zeile extrahieren
licenseType = line.Remove(0, 2);
licenseType = licenseType.Remove(line.LastIndexOf(" ") - 2);
}
if (line.StartsWith(" \""))
{
//Setzen damit auch die nächste Zeile in den Block mit aufgenommen wird
secondLine = true;
//Lizenzversion und Lizenztyp extrahieren
licenseVersion = line.Remove(line.IndexOf(",")).Remove(0, line.IndexOf("v") + 1);
licenseVendor = line.Remove(0, line.IndexOf(":") + 1);
}
if (emptyLine == 2 & !String.IsNullOrEmpty(line))
{
//User einlesen
ExtractUser(line, count);
}
}
if (nextLine)
{
read = true; //Ab jetzt wird ausgewertet
nextLine = false; //Zurücksetzen, damit die Abfrage nicht mehr durchlaufen wird
}
if (line.Contains("Feature usage info:"))
{
nextLine = true; //Die nächste Zeile darf nicht berücksichtigt werden, aber dann wird ausgewertet
}
}
//Die Werte des letzten Blocks schreiben
WriteLicenceValueBlock(count);
}
}
private void ExtractLicenses(string line, int count)
{
string lic = "";
string inUse = "";
string total = "";
lic = line.Remove(line.IndexOf(":")).Replace("Users of ", "");
line = line.Remove(0, line.IndexOf("Total of ") + 9);
if (line.Contains(" licenses in use)"))
{
line = line.Replace(" licenses in use)", "");
}
else
{
line = line.Replace(" license in use)", "");
}
inUse = line.Remove(0, line.LastIndexOf(" ") + 1);
total = line.Remove(line.IndexOf(" "));
//Bis zum schreiben zwischenspeichern
licenseName = lic;
licensesTotal = Convert.ToInt32(total);
licensesInUse = Convert.ToInt32(inUse);
}
private void ExtractUser(string line, int count)
{
string idNumber = "";
string firstName = "";
string sureName = "";
string temp = "";
string computerName = "";
User user = new User();
if (String.IsNullOrEmpty(line))
{
user.FirstName = "";
user.SurName = "";
user.IdNumber = "";
user.ComputerName = "";
}
else
{
if (line.Contains("TcServer"))
{
temp = line.Replace(" ", "");
idNumber = temp.Remove(temp.IndexOf(" Tc"));
temp = temp.Remove(0, temp.IndexOf(" ") + 1);
computerName = temp.Remove(temp.IndexOf(" "));
temp = temp.Remove(0, temp.IndexOf(" Tc") + 9);
temp = temp.Remove(temp.IndexOf(" ("));
if (temp.Contains("_"))
{
firstName = temp.Remove(0, temp.IndexOf("_") + 1);
sureName = temp.Remove(temp.IndexOf("_"));
}
else
{
firstName = "";
sureName = temp;
}
}
else
{
temp = line.Replace(" ", "");
idNumber = temp.Remove(temp.IndexOf(" "));
temp = temp.Remove(0, temp.IndexOf(" ") + 1);
computerName = temp.Remove(temp.IndexOf(" "));
temp = ExtractRealUserName(idNumber);
firstName = temp.Remove(0, temp.IndexOf(" ") + 1);
sureName = temp.Remove(temp.IndexOf(" "));
}
user.FirstName = firstName;
user.SurName = sureName;
user.IdNumber = idNumber;
user.ComputerName = computerName;
}
tUsers.Add(user);
}
private string ExtractRealUserName(string idNumber)
{
string username = "";
//TODO: Auswerten
username = "no Name"; //TODO: Nur zum Testen. Mauss dann wieder entfernt werden
return username;
}
private void WriteLicenceValueBlock(int count)
{
var license = new License();
license.LicenseName = licenseName;
license.LicensesTotal = licensesTotal;
license.LicensesInUse = licensesInUse;
license.LicenseVersion = licenseVersion;
license.LicenseVendor = licenseVendor;
license.LicenseType = licenseType;
licenseList.Add(license);
Users users = new Users();
for (int i = 0; i < tUsers.Count; i++)
{
users.Add(tUsers[i]);
}
tUsers.Clear();
userList.Add(users);
//Den ersten Eintrag aus der Liste löschen
if (count == 0)
{
licenseList.AllLicenses.RemoveAt(0);
userList.AllUsers.RemoveAt(0);
}
}
private void DrawDisplay(int countLicenses, object sender, EventArgs e)
{
int width = 860;
int hight = 72 + 90 * countLicenses;
this.ClientSize = new System.Drawing.Size(width, hight);
for (int i = 0; i < countLicenses; i++)
{
AddControl_Click(sender, e, i);
}
}
private void AddControl_Click(object sender, EventArgs e, int i)
{
const int xPos = 12;
const int yPos = 70;
var lic = new LicenseItem();
lic.Name = string.Format("LicItem[{0}]", i);
lic.Location = new Point((xPos), yPos + 90 * i);
lic.Size = new Size (618, 80);
lic.LicName = licenseList.AllLicenses[i].LicenseName;
lic.Available = licenseList.AllLicenses[i].LicensesTotal;
lic.InUse = licenseList.AllLicenses[i].LicensesInUse;
lic.Version = licenseList.AllLicenses[i].LicenseVersion;
lic.Vendor = licenseList.AllLicenses[i].LicenseVendor;
lic.Type = licenseList.AllLicenses[i].LicenseType;
lic.MouseClick += new MouseEventHandler(this.LicenseItemClick);
lic.Refresh();
this.Controls.Add(lic);
lic.ShowCurrentValues();
}
private void LicenseItemClick(object sender, EventArgs e)
{
// enter code here.
LicenseItem lic = (LicenseItem)sender;
// MessageBox.Show(lic.Name + " was clicked");
int index = Convert.ToInt32(lic.Name.Remove(0, lic.Name.IndexOf("[") + 1).Replace("]",""));
// MessageBox.Show(CreateUserList(index));
Users users = userList.AllUsers[index];
UserView uv = new UserView(users);
uv.ShowDialog();
}
private string CreateUserList(int index)
{
string userL = "";
Users users = userList.AllUsers[index];
for (int i = 0; i < users.AllUsers.Count; i++)
{
if (users.AllUsers[i].FirstName == "")
{
userL = "There is no license in use.";
}
else
{
userL += String.Concat("Name: ", users.AllUsers[i].FirstName, " ", users.AllUsers[i].SurName, " User Id: ", users.AllUsers[i].IdNumber, " Computername: ", users.AllUsers[i].ComputerName, "\n");
}
}
return userL;
}
}
}

120
NxLizenz/MainForm.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
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.
Example:
... ado.net/XML 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/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
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/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
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="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<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:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

92
NxLizenz/NxLizenz.csproj Normal file
View File

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<ProjectGuid>{D38D6511-4369-4CAB-B4F2-50904A52B788}</ProjectGuid>
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>WinExe</OutputType>
<RootNamespace>NxLizenz</RootNamespace>
<AssemblyName>NxLizenz</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="License.cs" />
<Compile Include="LicenseItem.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="LicenseItem.Designer.cs">
<DependentUpon>LicenseItem.cs</DependentUpon>
</Compile>
<Compile Include="LicensesList.cs" />
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="User.cs" />
<Compile Include="UserList.cs" />
<Compile Include="Users.cs" />
<Compile Include="UserView.cs" />
<Compile Include="UserView.Designer.cs">
<DependentUpon>UserView.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="LicenseItem.resx">
<DependentUpon>LicenseItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UserView.resx">
<DependentUpon>UserView.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

31
NxLizenz/Program.cs Normal file
View File

@ -0,0 +1,31 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 05.04.2018
* Zeit: 10:40
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Windows.Forms;
namespace NxLizenz
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
/// <summary>
/// Program entry point.
/// </summary>
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}

View File

@ -0,0 +1,31 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NxLizenz")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NxLizenz")]
[assembly: AssemblyCopyright("Copyright 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

29
NxLizenz/User.cs Normal file
View File

@ -0,0 +1,29 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 05.04.2018
* Zeit: 11:21
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
namespace NxLizenz
{
/// <summary>
/// Description of User.
/// </summary>
public class User
{
public string FirstName { set; get; }
public string SurName { set; get; }
public string IdNumber { set; get; }
public string ComputerName { set; get; }
public User()
{
}
}
}

57
NxLizenz/UserList.cs Normal file
View File

@ -0,0 +1,57 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 14:50
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
namespace NxLizenz
{
/// <summary>
/// Description of UserList.
/// </summary>
public class UserList
{
List<Users> aUsers = new List<Users>();
public List<Users> AllUsers
{
get
{
return aUsers;
}
}
public UserList()
{
aUsers.Clear();
}
public void Add(Users users)
{
aUsers.Add(users);
}
// List<Users> aUsers = new List<Users>();
// public List<Users> AllUsers
// {
// get
// {
// return aUsers;
// }
// }
//
// public UserList()
// {
// aUsers.Clear();
// }
//
// public void Add(Users users)
// {
// aUsers.Add(users);
// }
}
}

39
NxLizenz/UserList.cs_old Normal file
View File

@ -0,0 +1,39 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 10.04.2018
* Zeit: 14:50
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
namespace NxLizenz
{
/// <summary>
/// Description of UserList.
/// </summary>
public class UserList
{
List<User> users = new List<User>();
public List<User> AllUsers
{
get
{
return users;
}
}
// public User AllUsers { set; get; }
public UserList()
{
users.Clear();
}
public void Add(User user)
{
users.Add(user);
}
}
}

113
NxLizenz/UserView.Designer.cs generated Normal file
View File

@ -0,0 +1,113 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 17.04.2018
* Zeit: 14:32
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
namespace NxLizenz
{
partial class UserView
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
private System.Windows.Forms.DataGridView dataGridViewUser;
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnName;
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnID;
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnComputername;
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnSurname;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.dataGridViewUser = new System.Windows.Forms.DataGridView();
this.ColumnName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColumnSurname = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColumnID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ColumnComputername = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridViewUser)).BeginInit();
this.SuspendLayout();
//
// dataGridViewUser
//
this.dataGridViewUser.AllowUserToAddRows = false;
this.dataGridViewUser.AllowUserToDeleteRows = false;
this.dataGridViewUser.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.dataGridViewUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridViewUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ColumnName,
this.ColumnSurname,
this.ColumnID,
this.ColumnComputername});
this.dataGridViewUser.Location = new System.Drawing.Point(12, 12);
this.dataGridViewUser.Name = "dataGridViewUser";
this.dataGridViewUser.ReadOnly = true;
this.dataGridViewUser.Size = new System.Drawing.Size(608, 545);
this.dataGridViewUser.TabIndex = 0;
//
// ColumnName
//
this.ColumnName.HeaderText = "First Name";
this.ColumnName.Name = "ColumnName";
this.ColumnName.ReadOnly = true;
this.ColumnName.Width = 130;
//
// ColumnSurname
//
this.ColumnSurname.HeaderText = "Surname";
this.ColumnSurname.Name = "ColumnSurname";
this.ColumnSurname.ReadOnly = true;
this.ColumnSurname.Width = 130;
//
// ColumnID
//
this.ColumnID.HeaderText = "ID Number";
this.ColumnID.Name = "ColumnID";
this.ColumnID.ReadOnly = true;
this.ColumnID.Width = 140;
//
// ColumnComputername
//
this.ColumnComputername.HeaderText = "Computer Name";
this.ColumnComputername.Name = "ColumnComputername";
this.ColumnComputername.ReadOnly = true;
this.ColumnComputername.Width = 140;
//
// UserView
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.AutoSize = true;
this.ClientSize = new System.Drawing.Size(632, 569);
this.Controls.Add(this.dataGridViewUser);
this.MaximumSize = new System.Drawing.Size(680, 600);
this.Name = "UserView";
this.Text = "User List";
((System.ComponentModel.ISupportInitialize)(this.dataGridViewUser)).EndInit();
this.ResumeLayout(false);
}
}
}

40
NxLizenz/UserView.cs Normal file
View File

@ -0,0 +1,40 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 17.04.2018
* Zeit: 14:32
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace NxLizenz
{
/// <summary>
/// Description of UserView.
/// </summary>
public partial class UserView : Form
{
public UserView(Users users)
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//TODO: Wenn die Liste weniger als 26 User enthält, dann Fenster kleiner machen
for (int i = 0; i < users.AllUsers.Count; i++)
{
dataGridViewUser.Rows.Add(users.AllUsers[i].FirstName, users.AllUsers[i].SurName, users.AllUsers[i].IdNumber, users.AllUsers[i].ComputerName);
}
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
}
}

132
NxLizenz/UserView.resx Normal file
View File

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
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.
Example:
... ado.net/XML 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/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
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/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
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="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<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:sequence>
<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:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ColumnName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColumnSurname.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColumnID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ColumnComputername.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

38
NxLizenz/Users.cs Normal file
View File

@ -0,0 +1,38 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: 001142709
* Datum: 16.04.2018
* Zeit: 12:57
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
namespace NxLizenz
{
/// <summary>
/// Description of Users.
/// </summary>
public class Users
{
List<User> users = new List<User>();
public List<User> AllUsers
{
get
{
return users;
}
}
public Users()
{
users.Clear();
}
public void Add(User user)
{
users.Add(user);
}
}
}

6
NxLizenz/app.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,37 @@
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\bin\Debug\NxLizenz.exe.config
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\bin\Debug\NxLizenz.exe
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\bin\Debug\NxLizenz.pdb
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.MainForm.resources
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.csproj.GenerateResource.Cache
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.exe
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.pdb
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.LicenseItem.resources
D:\Data\_x\NxLizenz\NxLizenz\bin\Debug\NxLizenz.exe.config
D:\Data\_x\NxLizenz\NxLizenz\obj\Debug\NxLizenz.exe
D:\Data\_x\NxLizenz\NxLizenz\obj\Debug\NxLizenz.pdb
D:\Data\_x\NxLizenz\NxLizenz\bin\Debug\NxLizenz.exe
D:\Data\_x\NxLizenz\NxLizenz\bin\Debug\NxLizenz.pdb
D:\Data\_x\NxLizenz\NxLizenz\obj\Debug\NxLizenz.csprojResolveAssemblyReference.cache
D:\Data\_x\NxLizenz\NxLizenz\obj\Debug\NxLizenz.LicenseItem.resources
D:\Data\_x\NxLizenz\NxLizenz\obj\Debug\NxLizenz.MainForm.resources
D:\Data\_x\NxLizenz\NxLizenz\obj\Debug\NxLizenz.csproj.GenerateResource.Cache
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\bin\Debug\NxLizenz.exe.config
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\bin\Debug\NxLizenz.exe
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\bin\Debug\NxLizenz.pdb
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\obj\Debug\NxLizenz.csprojResolveAssemblyReference.cache
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\obj\Debug\NxLizenz.LicenseItem.resources
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\obj\Debug\NxLizenz.MainForm.resources
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\obj\Debug\NxLizenz.csproj.GenerateResource.Cache
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\obj\Debug\NxLizenz.exe
C:\Users\001142709\Desktop\NxLizenz_2\NxLizenz\obj\Debug\NxLizenz.pdb
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\bin\Debug\NxLizenz.exe.config
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\bin\Debug\NxLizenz.exe
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\bin\Debug\NxLizenz.pdb
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.csprojResolveAssemblyReference.cache
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.LicenseItem.resources
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.MainForm.resources
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.csproj.GenerateResource.Cache
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.exe
D:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.pdb
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.UserView.resources
H:\Programmieren\SharpDevelop\NxLizenz\NxLizenz\obj\Debug\NxLizenz.csprojResolveAssemblyReference.cache

Binary file not shown.

Binary file not shown.