vom PAI-Laptop

This commit is contained in:
rkaehler
2024-12-20 15:55:09 +01:00
parent f1229587f4
commit a1cf81b756
24 changed files with 633 additions and 75 deletions

View File

@@ -37,6 +37,7 @@ namespace Kaehler.scr
CheckForExistingInstance();
if (e.Args.GetLength(0) > 0) // es gibt einen Parameter
{
//System.Windows.MessageBox.Show("Parameter 0 ist: " + e.Args[0]);
// Normal screensaver mode.
if (e.Args[0].ToLower().StartsWith("/s"))
{
@@ -46,7 +47,9 @@ namespace Kaehler.scr
{
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"))
//{
@@ -57,6 +60,9 @@ namespace Kaehler.scr
}
else // kein Parameter App-Mode
{
//nur Test!
//SetupForm sf = new SetupForm();
//sf.ShowDialog();
StartScreenSaver();
}
}
@@ -108,6 +114,7 @@ namespace Kaehler.scr
}
/* ******************************************************************* */
//creates window on other screens
/* */
foreach (System.Windows.Forms.Screen screen in System.Windows.Forms.Screen.AllScreens)
{
if (screen == System.Windows.Forms.Screen.PrimaryScreen)
@@ -123,8 +130,8 @@ namespace Kaehler.scr
window.Height = location.Height + 14;
window.Show();
window.LayoutReset();
}
/* */
/* ******************************************************************* */
}
catch (Exception ex)