This commit is contained in:
Meik
2026-03-05 09:56:57 +01:00
parent 838e6b1ee1
commit 4013fa8e32
827 changed files with 743038 additions and 0 deletions

62
forms/configInfo.xaml.cs Normal file
View File

@@ -0,0 +1,62 @@
using System;
using System.Windows;
using C4IT_CustomerPanel.libs;
using System.Diagnostics;
namespace C4IT_CustomerPanel.forms
{
/// <summary>
/// Interaktionslogik für configInfo.xaml
/// </summary>
public partial class ConfigInfo
{
private ConfigClass conf;
public ConfigInfo()
{
InitializeComponent();
Left = FormHelper.CenterOfScreen().X;
Top = FormHelper.CenterOfScreen().Y;
Topmost = true;
Focus();
}
public void SetConfigInfo(ConfigClass config)
{
TxtMatrixServer.Text = config.GetMatrixServer(false);
TxtUpdateIntervalTickets.Text = config.GetTimerIntervalTicket().ToString();
TxtUpdateIntervalRegularAnnouncements.Text = config.GetTimerIntervalRegular().ToString();
TxtUpdateIntervalAdHocAnnouncements.Text = config.GetTimerIntervalAdHoc().ToString();
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
string version = fvi.ProductVersion;
TxtCopyRight.Text = "© Copyright " + DateTime.Now.Year ;
Title = Title + " " + DateTime.Now.Year + " / Version: "+version;
conf = config;
}
private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}
private void OnCcClicked(object sender, EventArgs e)
{
string cc = @"Icon Creator & Copyright - Austin Andrews (@templarian)
License - https://creativecommons.org/licenses/by/3.0/
Link to material - http://modernuiicons.com/
";
MessageBox.Show(cc,"Additional Copyrights");
}
private void Button_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
}
}
}