vom PAI-Laptop
This commit is contained in:
@@ -37,6 +37,7 @@ namespace Kaehler.scr
|
|||||||
CheckForExistingInstance();
|
CheckForExistingInstance();
|
||||||
if (e.Args.GetLength(0) > 0) // es gibt einen Parameter
|
if (e.Args.GetLength(0) > 0) // es gibt einen Parameter
|
||||||
{
|
{
|
||||||
|
//System.Windows.MessageBox.Show("Parameter 0 ist: " + e.Args[0]);
|
||||||
// Normal screensaver mode.
|
// Normal screensaver mode.
|
||||||
if (e.Args[0].ToLower().StartsWith("/s"))
|
if (e.Args[0].ToLower().StartsWith("/s"))
|
||||||
{
|
{
|
||||||
@@ -46,7 +47,9 @@ namespace Kaehler.scr
|
|||||||
{
|
{
|
||||||
if (e.Args[0].ToLower().StartsWith("/c"))
|
if (e.Args[0].ToLower().StartsWith("/c"))
|
||||||
{
|
{
|
||||||
System.Windows.MessageBox.Show("Es gibt noch keine Konfigurationsmöglichkeit.");
|
//System.Windows.MessageBox.Show("Es gibt nur eine Konfigurationsmöglichkeit...");
|
||||||
|
SetupForm sf = new SetupForm();
|
||||||
|
sf.ShowDialog();
|
||||||
}
|
}
|
||||||
//if (e.Args[0].ToLower().StartsWith("/p"))
|
//if (e.Args[0].ToLower().StartsWith("/p"))
|
||||||
//{
|
//{
|
||||||
@@ -57,6 +60,9 @@ namespace Kaehler.scr
|
|||||||
}
|
}
|
||||||
else // kein Parameter App-Mode
|
else // kein Parameter App-Mode
|
||||||
{
|
{
|
||||||
|
//nur Test!
|
||||||
|
//SetupForm sf = new SetupForm();
|
||||||
|
//sf.ShowDialog();
|
||||||
StartScreenSaver();
|
StartScreenSaver();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,6 +114,7 @@ namespace Kaehler.scr
|
|||||||
}
|
}
|
||||||
/* ******************************************************************* */
|
/* ******************************************************************* */
|
||||||
//creates window on other screens
|
//creates window on other screens
|
||||||
|
/* */
|
||||||
foreach (System.Windows.Forms.Screen screen in System.Windows.Forms.Screen.AllScreens)
|
foreach (System.Windows.Forms.Screen screen in System.Windows.Forms.Screen.AllScreens)
|
||||||
{
|
{
|
||||||
if (screen == System.Windows.Forms.Screen.PrimaryScreen)
|
if (screen == System.Windows.Forms.Screen.PrimaryScreen)
|
||||||
@@ -123,8 +130,8 @@ namespace Kaehler.scr
|
|||||||
window.Height = location.Height + 14;
|
window.Height = location.Height + 14;
|
||||||
window.Show();
|
window.Show();
|
||||||
window.LayoutReset();
|
window.LayoutReset();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/* */
|
||||||
/* ******************************************************************* */
|
/* ******************************************************************* */
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -2,10 +2,31 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net7.0-windows</TargetFramework>
|
<TargetFramework>net8.0-windows8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<UseWPF>True</UseWPF>
|
<UseWPF>True</UseWPF>
|
||||||
<UseWindowsForms>True</UseWindowsForms>
|
<UseWindowsForms>True</UseWindowsForms>
|
||||||
|
<StartupObject>Kaehler.scr.App</StartupObject>
|
||||||
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="Properties\Settings.Designer.cs">
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Update="Properties\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="SetupForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Update="MainWindow.xaml">
|
<Page Update="MainWindow.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Window x:Class="Kaehler.scr.MainWindow"
|
<Window x:Class="Kaehler.scr.MainWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Kaehler.scr" Height="350" Width="525" ShowInTaskbar="False" ToolTip="Bildschirmschoner - Klicken oder Taste zum Beenden ..." Topmost="False" WindowStartupLocation="Manual" WindowState="Normal" WindowStyle="None" MouseLeftButtonUp="Window_MouseLeftButtonUp" MouseRightButtonUp="Window_MouseRightButtonUp" MouseDoubleClick="Window_MouseDoubleClick" KeyUp="Window_KeyUp" ResizeMode="NoResize" Background="Black" AllowsTransparency="True" Cursor="None" Opacity="0.1" Loaded="Window_Loaded" Foreground="#FFF2E6E6" Name="ScrWindow">
|
Title="Kaehler.scr" Height="350" Width="525" ShowInTaskbar="False" Topmost="False" WindowStartupLocation="Manual" WindowState="Normal" WindowStyle="None" MouseLeftButtonUp="Window_MouseLeftButtonUp" MouseRightButtonUp="Window_MouseRightButtonUp" MouseDoubleClick="Window_MouseDoubleClick" KeyUp="Window_KeyUp" ResizeMode="NoResize" Background="Black" AllowsTransparency="True" Cursor="None" Opacity="0.1" Loaded="Window_Loaded" Foreground="#FFF2E6E6" Name="ScrWindow">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="54*" />
|
<RowDefinition Height="54*" />
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ using System.Net.Cache;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
using System.Net.Http;
|
||||||
|
using System.Windows.Media.TextFormatting;
|
||||||
|
using System.Threading.Tasks;
|
||||||
//using System.Drawing;
|
//using System.Drawing;
|
||||||
|
|
||||||
|
|
||||||
@@ -27,10 +31,12 @@ namespace Kaehler.scr
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
const int cTimerStart = 1;
|
private int cTimerStart = 1;
|
||||||
const int cStartAnzeige = 12;
|
private int cStartAnzeige = 12;
|
||||||
const int cAusblenden = 11;
|
private int cAusblenden = 11;
|
||||||
const int cTimerDeAni = 31; //war 21
|
private int cTimerDeAni = 31;
|
||||||
|
private int iGrundwert = 30;
|
||||||
|
private int iAbweichung = 10;
|
||||||
|
|
||||||
private DispatcherTimer randTimer;
|
private DispatcherTimer randTimer;
|
||||||
private bool bRandTimer;
|
private bool bRandTimer;
|
||||||
@@ -42,6 +48,11 @@ namespace Kaehler.scr
|
|||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
oRand = new Random();
|
||||||
|
bRandTimer = false;
|
||||||
|
CheckReg();
|
||||||
|
iGrundwert = ReadFromReg("Grundwert", iGrundwert);
|
||||||
|
iAbweichung = ReadFromReg("Abweichung", iAbweichung);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SCRBeenden()
|
public void SCRBeenden()
|
||||||
@@ -49,6 +60,41 @@ namespace Kaehler.scr
|
|||||||
App.Current.Shutdown();
|
App.Current.Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CheckReg()
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software", true);
|
||||||
|
RegistryKey subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
if (subkey == null)
|
||||||
|
{
|
||||||
|
key.CreateSubKey("Kaehler.SCR");
|
||||||
|
}
|
||||||
|
subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
Object oTest1 = subkey.GetValue("Grundwert");
|
||||||
|
if (oTest1 == null)
|
||||||
|
{
|
||||||
|
subkey.SetValue("Grundwert", 30);
|
||||||
|
}
|
||||||
|
Object oTest2 = subkey.GetValue("Abweichung");
|
||||||
|
if (oTest2 == null)
|
||||||
|
{
|
||||||
|
subkey.SetValue("Abweichung", 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private int ReadFromReg(String sName, int iDefault)
|
||||||
|
{
|
||||||
|
int iRet = iDefault;
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software", true);
|
||||||
|
RegistryKey subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
Object oTest = subkey.GetValue(sName);
|
||||||
|
if (oTest != null)
|
||||||
|
iRet = int.Parse(oTest.ToString());
|
||||||
|
|
||||||
|
return iRet;
|
||||||
|
}
|
||||||
|
|
||||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -74,13 +120,13 @@ namespace Kaehler.scr
|
|||||||
|
|
||||||
private void Logge(string sLogText)
|
private void Logge(string sLogText)
|
||||||
{
|
{
|
||||||
Console.WriteLine(sLogText);
|
Trace.WriteLine(sLogText);
|
||||||
SimpleEventLog(sLogText,false);
|
SimpleEventLog(sLogText,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoggeFehler(string sLogText)
|
private void LoggeFehler(string sLogText)
|
||||||
{
|
{
|
||||||
Console.WriteLine(sLogText);
|
Trace.WriteLine(sLogText);
|
||||||
SimpleEventLog(sLogText, true);
|
SimpleEventLog(sLogText, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,10 +143,14 @@ namespace Kaehler.scr
|
|||||||
// ... beginne mit Zitat
|
// ... beginne mit Zitat
|
||||||
LoadZoomZitat();
|
LoadZoomZitat();
|
||||||
randCounter = cTimerDeAni; // 1 x 10s bis zur DeAnimation
|
randCounter = cTimerDeAni; // 1 x 10s bis zur DeAnimation
|
||||||
|
//Logge("Schalte Tooltip ab ...");
|
||||||
|
//this.ToolTip.ShowAlways(false);
|
||||||
}
|
}
|
||||||
// cAusblenden ... cStartAnzeige = Pause
|
// cAusblenden ... cStartAnzeige = Pause
|
||||||
else if (randCounter == cStartAnzeige) //Starte zufällige Anzeige
|
else if (randCounter == cStartAnzeige) //Starte zufällige Anzeige
|
||||||
{
|
{
|
||||||
|
//Zeiten neu festlegen:
|
||||||
|
cTimerDeAni = iGrundwert + oRand.Next(-iAbweichung, iAbweichung);
|
||||||
//Auswürfeln ..
|
//Auswürfeln ..
|
||||||
LayoutReset();
|
LayoutReset();
|
||||||
iAktivesElement = (int)oRand.Next(7);
|
iAktivesElement = (int)oRand.Next(7);
|
||||||
@@ -457,14 +507,26 @@ namespace Kaehler.scr
|
|||||||
Logge("Zitat ani ...");
|
Logge("Zitat ani ...");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DoubleAnimation da = new DoubleAnimation();
|
int iFont = 32;
|
||||||
da.From = 0;
|
if (imageSCR.Width < 1800)
|
||||||
da.To = 1;
|
{
|
||||||
da.Duration = new Duration(TimeSpan.FromSeconds(1));
|
iFont = 24;
|
||||||
|
}
|
||||||
|
DoubleAnimation da1 = new DoubleAnimation();
|
||||||
|
da1.From = 0;
|
||||||
|
da1.To = 1;
|
||||||
|
da1.Duration = new Duration(TimeSpan.FromSeconds(2));
|
||||||
|
DoubleAnimation da2 = new DoubleAnimation();
|
||||||
|
da2.From = 16;
|
||||||
|
da2.To = iFont;
|
||||||
|
da2.Duration = new Duration(TimeSpan.FromSeconds(3));
|
||||||
Storyboard sb = new Storyboard();
|
Storyboard sb = new Storyboard();
|
||||||
sb.Children.Add(da);
|
sb.Children.Add(da1);
|
||||||
Storyboard.SetTargetName(da, txtZitat.Name);
|
sb.Children.Add(da2);
|
||||||
Storyboard.SetTargetProperty(da, new PropertyPath("(Opacity)"));
|
Storyboard.SetTargetName(da1, txtZitat.Name);
|
||||||
|
Storyboard.SetTargetProperty(da1, new PropertyPath("(Opacity)"));
|
||||||
|
Storyboard.SetTargetName(da2, txtZitat.Name);
|
||||||
|
Storyboard.SetTargetProperty(da2, new PropertyPath("(FontSize)"));
|
||||||
this.Resources.Clear();
|
this.Resources.Clear();
|
||||||
this.Resources.Add("AniZitat", sb);
|
this.Resources.Add("AniZitat", sb);
|
||||||
txtZitat.Visibility = Visibility.Visible;
|
txtZitat.Visibility = Visibility.Visible;
|
||||||
@@ -483,14 +545,26 @@ namespace Kaehler.scr
|
|||||||
Logge("Zitat de-ani ...");
|
Logge("Zitat de-ani ...");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DoubleAnimation da = new DoubleAnimation();
|
int iFont = 32;
|
||||||
da.From = 1;
|
if (imageSCR.Width < 1800)
|
||||||
da.To = 0;
|
{
|
||||||
da.Duration = new Duration(TimeSpan.FromSeconds(2));
|
iFont = 24;
|
||||||
|
}
|
||||||
|
DoubleAnimation da1 = new DoubleAnimation();
|
||||||
|
da1.From = 1;
|
||||||
|
da1.To = 0;
|
||||||
|
da1.Duration = new Duration(TimeSpan.FromSeconds(2));
|
||||||
|
DoubleAnimation da2 = new DoubleAnimation();
|
||||||
|
da2.From = iFont;
|
||||||
|
da2.To = 16;
|
||||||
|
da2.Duration = new Duration(TimeSpan.FromSeconds(2));
|
||||||
Storyboard sb = new Storyboard();
|
Storyboard sb = new Storyboard();
|
||||||
sb.Children.Add(da);
|
sb.Children.Add(da1);
|
||||||
Storyboard.SetTargetName(da, txtZitat.Name);
|
sb.Children.Add(da2);
|
||||||
Storyboard.SetTargetProperty(da, new PropertyPath("(Opacity)"));
|
Storyboard.SetTargetName(da1, txtZitat.Name);
|
||||||
|
Storyboard.SetTargetProperty(da1, new PropertyPath("(Opacity)"));
|
||||||
|
Storyboard.SetTargetName(da2, txtZitat.Name);
|
||||||
|
Storyboard.SetTargetProperty(da2, new PropertyPath("(FontSize)"));
|
||||||
this.Resources.Clear();
|
this.Resources.Clear();
|
||||||
this.Resources.Add("DeAniZitat", sb);
|
this.Resources.Add("DeAniZitat", sb);
|
||||||
sb.Begin();
|
sb.Begin();
|
||||||
@@ -611,11 +685,11 @@ namespace Kaehler.scr
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
//WebRequest request = WebRequest.Create(new Uri(TextUrl, UriKind.Absolute));
|
//WebRequest request = WebRequest.Create(new Uri(TextUrl, UriKind.Absolute));
|
||||||
|
/* The OLD Way:
|
||||||
WebRequest request = WebRequest.Create(TextUrl);
|
WebRequest request = WebRequest.Create(TextUrl);
|
||||||
request.Timeout = 500;
|
request.Timeout = 500;
|
||||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
|
||||||
WebResponse response = request.GetResponse();
|
WebResponse response = request.GetResponse();
|
||||||
Console.WriteLine(((HttpWebResponse)response).StatusDescription);
|
Trace.WriteLine(((HttpWebResponse)response).StatusDescription);
|
||||||
Stream responseStream = response.GetResponseStream();
|
Stream responseStream = response.GetResponseStream();
|
||||||
BinaryReader reader = new BinaryReader(responseStream);
|
BinaryReader reader = new BinaryReader(responseStream);
|
||||||
MemoryStream memoryStream = new MemoryStream();
|
MemoryStream memoryStream = new MemoryStream();
|
||||||
@@ -629,6 +703,12 @@ namespace Kaehler.scr
|
|||||||
memoryStream.Seek(0, SeekOrigin.Begin);
|
memoryStream.Seek(0, SeekOrigin.Begin);
|
||||||
StreamReader readerTXT = new StreamReader(memoryStream);
|
StreamReader readerTXT = new StreamReader(memoryStream);
|
||||||
sDummy = readerTXT.ReadToEnd();
|
sDummy = readerTXT.ReadToEnd();
|
||||||
|
*/
|
||||||
|
var client = new HttpClient();
|
||||||
|
var webRequest = new HttpRequestMessage(HttpMethod.Get, TextUrl);
|
||||||
|
var response = client.Send(webRequest);
|
||||||
|
using var reader = new StreamReader(response.Content.ReadAsStream());
|
||||||
|
sDummy = reader.ReadToEnd();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -668,6 +748,7 @@ namespace Kaehler.scr
|
|||||||
if (!File.Exists(sCacheFileName))
|
if (!File.Exists(sCacheFileName))
|
||||||
{
|
{
|
||||||
//WebRequest request = WebRequest.Create(new Uri(ImageUrl, UriKind.Absolute));
|
//WebRequest request = WebRequest.Create(new Uri(ImageUrl, UriKind.Absolute));
|
||||||
|
/* The Old Way:
|
||||||
WebRequest request = WebRequest.Create(ImageUrl);
|
WebRequest request = WebRequest.Create(ImageUrl);
|
||||||
request.Timeout = 500;
|
request.Timeout = 500;
|
||||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||||
@@ -675,17 +756,30 @@ namespace Kaehler.scr
|
|||||||
Stream responseStream = response.GetResponseStream();
|
Stream responseStream = response.GetResponseStream();
|
||||||
BinaryReader reader = new BinaryReader(responseStream);
|
BinaryReader reader = new BinaryReader(responseStream);
|
||||||
MemoryStream memoryStream = new MemoryStream();
|
MemoryStream memoryStream = new MemoryStream();
|
||||||
|
*/
|
||||||
|
|
||||||
|
var client = new HttpClient();
|
||||||
|
var webRequest = new HttpRequestMessage(HttpMethod.Get, ImageUrl);
|
||||||
|
var response = client.Send(webRequest);
|
||||||
|
//using var reader = new StreamReader(response.Content.ReadAsStream());
|
||||||
|
var task = Task.Run(() => response.Content.ReadAsByteArrayAsync());
|
||||||
|
task.Wait();
|
||||||
|
byte[] bytebuffer = task.Result;
|
||||||
|
|
||||||
|
/*
|
||||||
byte[] bytebuffer = new byte[BytesToRead];
|
byte[] bytebuffer = new byte[BytesToRead];
|
||||||
|
reader.re
|
||||||
int bytesRead = reader.Read(bytebuffer, 0, BytesToRead);
|
int bytesRead = reader.Read(bytebuffer, 0, BytesToRead);
|
||||||
while (bytesRead > 0)
|
while (bytesRead > 0)
|
||||||
{
|
{
|
||||||
memoryStream.Write(bytebuffer, 0, bytesRead);
|
memoryStream.Write(bytebuffer, 0, bytesRead);
|
||||||
bytesRead = reader.Read(bytebuffer, 0, BytesToRead);
|
bytesRead = reader.Read(bytebuffer, 0, BytesToRead);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
tmpImage.BeginInit();
|
tmpImage.BeginInit();
|
||||||
memoryStream.Seek(0, SeekOrigin.Begin);
|
//memoryStream.Seek(0, SeekOrigin.Begin);
|
||||||
tmpImage.StreamSource = memoryStream;
|
//tmpImage.StreamSource = imgResponse;
|
||||||
|
tmpImage.StreamSource = new MemoryStream(bytebuffer);
|
||||||
tmpImage.EndInit();
|
tmpImage.EndInit();
|
||||||
|
|
||||||
ZielImage.Source = tmpImage;
|
ZielImage.Source = tmpImage;
|
||||||
|
|||||||
26
Kaehler.scr/Properties/Settings.Designer.cs
generated
Normal file
26
Kaehler.scr/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Kaehler.scr.Properties {
|
||||||
|
|
||||||
|
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")]
|
||||||
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
||||||
|
public static Settings Default {
|
||||||
|
get {
|
||||||
|
return defaultInstance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
6
Kaehler.scr/Properties/Settings.settings
Normal file
6
Kaehler.scr/Properties/Settings.settings
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
</SettingsFile>
|
||||||
153
Kaehler.scr/SetupForm.Designer.cs
generated
Normal file
153
Kaehler.scr/SetupForm.Designer.cs
generated
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
namespace Kaehler.scr
|
||||||
|
{
|
||||||
|
partial class SetupForm
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
button1 = new System.Windows.Forms.Button();
|
||||||
|
textBox1 = new System.Windows.Forms.TextBox();
|
||||||
|
trackBar1 = new System.Windows.Forms.TrackBar();
|
||||||
|
label1 = new System.Windows.Forms.Label();
|
||||||
|
label2 = new System.Windows.Forms.Label();
|
||||||
|
trackBar2 = new System.Windows.Forms.TrackBar();
|
||||||
|
textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
label3 = new System.Windows.Forms.Label();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackBar1).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackBar2).BeginInit();
|
||||||
|
SuspendLayout();
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
button1.Location = new System.Drawing.Point(405, 166);
|
||||||
|
button1.Name = "button1";
|
||||||
|
button1.Size = new System.Drawing.Size(89, 29);
|
||||||
|
button1.TabIndex = 0;
|
||||||
|
button1.Text = "OK";
|
||||||
|
button1.UseVisualStyleBackColor = true;
|
||||||
|
button1.Click += button1_Click;
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
textBox1.Location = new System.Drawing.Point(86, 54);
|
||||||
|
textBox1.Name = "textBox1";
|
||||||
|
textBox1.Size = new System.Drawing.Size(35, 23);
|
||||||
|
textBox1.TabIndex = 1;
|
||||||
|
textBox1.TextChanged += textBox1_TextChanged;
|
||||||
|
//
|
||||||
|
// trackBar1
|
||||||
|
//
|
||||||
|
trackBar1.Location = new System.Drawing.Point(50, 80);
|
||||||
|
trackBar1.Maximum = 300;
|
||||||
|
trackBar1.Minimum = 5;
|
||||||
|
trackBar1.Name = "trackBar1";
|
||||||
|
trackBar1.Size = new System.Drawing.Size(97, 45);
|
||||||
|
trackBar1.TabIndex = 2;
|
||||||
|
trackBar1.Value = 5;
|
||||||
|
trackBar1.Scroll += trackBar1_Scroll;
|
||||||
|
trackBar1.Move += trackBar1_Move;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
label1.Location = new System.Drawing.Point(12, 56);
|
||||||
|
label1.Name = "label1";
|
||||||
|
label1.Size = new System.Drawing.Size(68, 21);
|
||||||
|
label1.TabIndex = 3;
|
||||||
|
label1.Text = "Grundwert";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
label2.AutoSize = true;
|
||||||
|
label2.Location = new System.Drawing.Point(147, 54);
|
||||||
|
label2.Name = "label2";
|
||||||
|
label2.Size = new System.Drawing.Size(74, 15);
|
||||||
|
label2.TabIndex = 4;
|
||||||
|
label2.Text = "Abweichung";
|
||||||
|
//
|
||||||
|
// trackBar2
|
||||||
|
//
|
||||||
|
trackBar2.Location = new System.Drawing.Point(204, 80);
|
||||||
|
trackBar2.Maximum = 15;
|
||||||
|
trackBar2.Minimum = 5;
|
||||||
|
trackBar2.Name = "trackBar2";
|
||||||
|
trackBar2.Size = new System.Drawing.Size(83, 45);
|
||||||
|
trackBar2.TabIndex = 5;
|
||||||
|
trackBar2.Value = 5;
|
||||||
|
trackBar2.Scroll += trackBar2_Scroll;
|
||||||
|
trackBar2.Move += trackBar2_Move;
|
||||||
|
//
|
||||||
|
// textBox2
|
||||||
|
//
|
||||||
|
textBox2.Location = new System.Drawing.Point(227, 53);
|
||||||
|
textBox2.Name = "textBox2";
|
||||||
|
textBox2.Size = new System.Drawing.Size(38, 23);
|
||||||
|
textBox2.TabIndex = 6;
|
||||||
|
textBox2.TextChanged += textBox2_TextChanged;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
label3.AutoSize = true;
|
||||||
|
label3.Location = new System.Drawing.Point(12, 19);
|
||||||
|
label3.Name = "label3";
|
||||||
|
label3.Size = new System.Drawing.Size(86, 15);
|
||||||
|
label3.TabIndex = 7;
|
||||||
|
label3.Text = "Wechsel-Timer";
|
||||||
|
//
|
||||||
|
// SetupForm
|
||||||
|
//
|
||||||
|
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||||
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
ClientSize = new System.Drawing.Size(526, 217);
|
||||||
|
Controls.Add(label3);
|
||||||
|
Controls.Add(textBox2);
|
||||||
|
Controls.Add(trackBar2);
|
||||||
|
Controls.Add(label2);
|
||||||
|
Controls.Add(label1);
|
||||||
|
Controls.Add(trackBar1);
|
||||||
|
Controls.Add(textBox1);
|
||||||
|
Controls.Add(button1);
|
||||||
|
MaximizeBox = false;
|
||||||
|
MinimizeBox = false;
|
||||||
|
Name = "SetupForm";
|
||||||
|
Text = "Setup";
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackBar1).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackBar2).EndInit();
|
||||||
|
ResumeLayout(false);
|
||||||
|
PerformLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.TextBox textBox1;
|
||||||
|
private System.Windows.Forms.TrackBar trackBar1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.TrackBar trackBar2;
|
||||||
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
}
|
||||||
|
}
|
||||||
116
Kaehler.scr/SetupForm.cs
Normal file
116
Kaehler.scr/SetupForm.cs
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using System.Windows.Forms.VisualStyles;
|
||||||
|
|
||||||
|
namespace Kaehler.scr
|
||||||
|
{
|
||||||
|
public partial class SetupForm : Form
|
||||||
|
{
|
||||||
|
private int iGrundwert = 30;
|
||||||
|
private int iAbweichung = 1;
|
||||||
|
|
||||||
|
public SetupForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
CheckReg();
|
||||||
|
iGrundwert = ReadFromReg("Grundwert", iGrundwert);
|
||||||
|
iAbweichung = ReadFromReg("Abweichung", iAbweichung);
|
||||||
|
textBox1.Text = iGrundwert.ToString();
|
||||||
|
textBox2.Text = iAbweichung.ToString();
|
||||||
|
trackBar1.Value = iGrundwert;
|
||||||
|
trackBar2.Value = iAbweichung;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void textBox1_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
iGrundwert = int.Parse(textBox1.Text);
|
||||||
|
trackBar1.Value = iGrundwert;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void textBox2_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
iAbweichung = int.Parse(textBox2.Text);
|
||||||
|
trackBar2.Value = iAbweichung;
|
||||||
|
}
|
||||||
|
private void trackBar1_Scroll(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
iGrundwert = trackBar1.Value;
|
||||||
|
textBox1.Text=iGrundwert.ToString();
|
||||||
|
}
|
||||||
|
private void trackBar2_Scroll(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
iAbweichung = trackBar2.Value;
|
||||||
|
textBox2.Text = iAbweichung.ToString();
|
||||||
|
}
|
||||||
|
private void trackBar1_Move(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
iGrundwert = trackBar1.Value;
|
||||||
|
textBox1.Text = iGrundwert.ToString();
|
||||||
|
}
|
||||||
|
private void trackBar2_Move(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
iAbweichung = trackBar2.Value;
|
||||||
|
textBox2.Text = iAbweichung.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CheckReg()
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software", true);
|
||||||
|
RegistryKey subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
if (subkey == null)
|
||||||
|
{
|
||||||
|
key.CreateSubKey("Kaehler.SCR");
|
||||||
|
}
|
||||||
|
subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
Object oTest1 = subkey.GetValue("Grundwert");
|
||||||
|
if (oTest1 == null)
|
||||||
|
{
|
||||||
|
subkey.SetValue("Grundwert", 30);
|
||||||
|
}
|
||||||
|
Object oTest2 = subkey.GetValue("Abweichung");
|
||||||
|
if (oTest2 == null)
|
||||||
|
{
|
||||||
|
subkey.SetValue("Abweichung", 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private int ReadFromReg(String sName, int iDefault)
|
||||||
|
{
|
||||||
|
int iRet = iDefault;
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software", true);
|
||||||
|
RegistryKey subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
Object oTest = subkey.GetValue(sName);
|
||||||
|
if (oTest != null)
|
||||||
|
iRet = int.Parse(oTest.ToString());
|
||||||
|
|
||||||
|
return iRet;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void WriteToReg(String sName, int iWert)
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software", true);
|
||||||
|
RegistryKey subkey = key.OpenSubKey("Kaehler.SCR", true);
|
||||||
|
subkey.SetValue(sName, iWert);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WriteToReg("Grundwert", iGrundwert);
|
||||||
|
WriteToReg("Abweichung", iAbweichung);
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
120
Kaehler.scr/SetupForm.resx
Normal file
120
Kaehler.scr/SetupForm.resx
Normal 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>
|
||||||
@@ -1 +1 @@
|
|||||||
34da4b791e7718163d18b3313dff15be1443ca85
|
5fd17a86bec36fd309d972d879d9cf15ab9af1d307060ba552c93272402edd31
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = Kaehler.scr
|
build_property.RootNamespace = Kaehler.scr
|
||||||
build_property.ProjectDir = \\NAS\Test\src\Kaehler.scr\
|
build_property.ProjectDir = \\nas\Test\src\Kaehler.scr\
|
||||||
|
build_property.EnableComHosting =
|
||||||
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
|||||||
Binary file not shown.
@@ -1,37 +1,35 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"T:\\src\\Kaehler.scr\\Kaehler.scr.csproj": {}
|
"C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"T:\\src\\Kaehler.scr\\Kaehler.scr.csproj": {
|
"C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "T:\\src\\Kaehler.scr\\Kaehler.scr.csproj",
|
"projectUniqueName": "C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj",
|
||||||
"projectName": "Kaehler.scr",
|
"projectName": "Kaehler.scr",
|
||||||
"projectPath": "T:\\src\\Kaehler.scr\\Kaehler.scr.csproj",
|
"projectPath": "C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj",
|
||||||
"packagesPath": "C:\\Users\\Robert\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\rkaehler\\.nuget\\packages\\",
|
||||||
"outputPath": "T:\\src\\Kaehler.scr\\obj\\",
|
"outputPath": "C:\\Projekte\\_Privat\\Kaehler.scr\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
],
|
],
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\Robert\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\rkaehler\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net7.0-windows"
|
"net8.0-windows8.0"
|
||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}
|
||||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
|
||||||
"https://api.nuget.org/v3/index.json": {}
|
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net7.0-windows7.0": {
|
"net8.0-windows8.0": {
|
||||||
"targetAlias": "net7.0-windows",
|
"targetAlias": "net8.0-windows8.0",
|
||||||
"projectReferences": {}
|
"projectReferences": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -39,11 +37,16 @@
|
|||||||
"warnAsError": [
|
"warnAsError": [
|
||||||
"NU1605"
|
"NU1605"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"restoreAuditProperties": {
|
||||||
|
"enableAudit": "true",
|
||||||
|
"auditLevel": "low",
|
||||||
|
"auditMode": "direct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net7.0-windows7.0": {
|
"net8.0-windows8.0": {
|
||||||
"targetAlias": "net7.0-windows",
|
"targetAlias": "net8.0-windows8.0",
|
||||||
"imports": [
|
"imports": [
|
||||||
"net461",
|
"net461",
|
||||||
"net462",
|
"net462",
|
||||||
@@ -63,7 +66,7 @@
|
|||||||
"privateAssets": "none"
|
"privateAssets": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.404/PortableRuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Robert\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\rkaehler\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\Robert\.nuget\packages\" />
|
<SourceRoot Include="C:\Users\rkaehler\.nuget\packages\" />
|
||||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -45,7 +45,7 @@ namespace Kaehler.scr {
|
|||||||
/// InitializeComponent
|
/// InitializeComponent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.17.0")]
|
||||||
public void InitializeComponent() {
|
public void InitializeComponent() {
|
||||||
|
|
||||||
#line 4 "..\..\..\App.xaml"
|
#line 4 "..\..\..\App.xaml"
|
||||||
@@ -60,7 +60,7 @@ namespace Kaehler.scr {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[System.STAThreadAttribute()]
|
[System.STAThreadAttribute()]
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.17.0")]
|
||||||
public static void Main() {
|
public static void Main() {
|
||||||
Kaehler.scr.App app = new Kaehler.scr.App();
|
Kaehler.scr.App app = new Kaehler.scr.App();
|
||||||
app.InitializeComponent();
|
app.InitializeComponent();
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
7aba713d409dea39b0cea699ba890bf6025927fd
|
9b279863e1ee3d8ab08b17af958db03132f2059641036eea629bb73e35c47158
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = Kaehler.scr
|
build_property.RootNamespace = Kaehler.scr
|
||||||
build_property.ProjectDir = T:\src\Kaehler.scr\
|
build_property.ProjectDir = \\nas\Test\src\Kaehler.scr\
|
||||||
|
build_property.EnableComHosting =
|
||||||
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -127,13 +127,13 @@ namespace Kaehler.scr {
|
|||||||
/// InitializeComponent
|
/// InitializeComponent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.17.0")]
|
||||||
public void InitializeComponent() {
|
public void InitializeComponent() {
|
||||||
if (_contentLoaded) {
|
if (_contentLoaded) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_contentLoaded = true;
|
_contentLoaded = true;
|
||||||
System.Uri resourceLocater = new System.Uri("/Kaehler.scr;component/mainwindow.xaml", System.UriKind.Relative);
|
System.Uri resourceLocater = new System.Uri("/Kaehler.scr;V1.0.0.0;component/mainwindow.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
#line 1 "..\..\..\MainWindow.xaml"
|
#line 1 "..\..\..\MainWindow.xaml"
|
||||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||||
@@ -143,7 +143,7 @@ namespace Kaehler.scr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.17.0")]
|
||||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||||
|
|||||||
Binary file not shown.
@@ -1,44 +1,42 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"targets": {
|
"targets": {
|
||||||
"net7.0-windows7.0": {}
|
"net8.0-windows8.0": {}
|
||||||
},
|
},
|
||||||
"libraries": {},
|
"libraries": {},
|
||||||
"projectFileDependencyGroups": {
|
"projectFileDependencyGroups": {
|
||||||
"net7.0-windows7.0": []
|
"net8.0-windows8.0": []
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
"C:\\Users\\Robert\\.nuget\\packages\\": {},
|
"C:\\Users\\rkaehler\\.nuget\\packages\\": {},
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "T:\\src\\Kaehler.scr\\Kaehler.scr.csproj",
|
"projectUniqueName": "C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj",
|
||||||
"projectName": "Kaehler.scr",
|
"projectName": "Kaehler.scr",
|
||||||
"projectPath": "T:\\src\\Kaehler.scr\\Kaehler.scr.csproj",
|
"projectPath": "C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj",
|
||||||
"packagesPath": "C:\\Users\\Robert\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\rkaehler\\.nuget\\packages\\",
|
||||||
"outputPath": "T:\\src\\Kaehler.scr\\obj\\",
|
"outputPath": "C:\\Projekte\\_Privat\\Kaehler.scr\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
],
|
],
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\Robert\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\rkaehler\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net7.0-windows"
|
"net8.0-windows8.0"
|
||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}
|
||||||
"C:\\Program Files\\dotnet\\library-packs": {},
|
|
||||||
"https://api.nuget.org/v3/index.json": {}
|
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net7.0-windows7.0": {
|
"net8.0-windows8.0": {
|
||||||
"targetAlias": "net7.0-windows",
|
"targetAlias": "net8.0-windows8.0",
|
||||||
"projectReferences": {}
|
"projectReferences": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -46,11 +44,16 @@
|
|||||||
"warnAsError": [
|
"warnAsError": [
|
||||||
"NU1605"
|
"NU1605"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"restoreAuditProperties": {
|
||||||
|
"enableAudit": "true",
|
||||||
|
"auditLevel": "low",
|
||||||
|
"auditMode": "direct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net7.0-windows7.0": {
|
"net8.0-windows8.0": {
|
||||||
"targetAlias": "net7.0-windows",
|
"targetAlias": "net8.0-windows8.0",
|
||||||
"imports": [
|
"imports": [
|
||||||
"net461",
|
"net461",
|
||||||
"net462",
|
"net462",
|
||||||
@@ -70,7 +73,7 @@
|
|||||||
"privateAssets": "none"
|
"privateAssets": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.404/PortableRuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "XP5y4Yw5lNu2H2qGkid9cUz0xyKkFvwxBTobd2IE4ezjP79QT+DvOPWBbk2tSdVfeWw/I+hJMbk6nZM7UtRuoQ==",
|
"dgSpecHash": "+untOBr2e9M=",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "T:\\src\\Kaehler.scr\\Kaehler.scr.csproj",
|
"projectFilePath": "C:\\Projekte\\_Privat\\Kaehler.scr\\Kaehler.scr.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user