AnlageIP adresse kann nun im Menu geändert werden
This commit is contained in:
43
SanSystem/frmSettings.cs
Normal file
43
SanSystem/frmSettings.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using SanSystem.Einstellungen;
|
||||
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;
|
||||
|
||||
namespace SanSystem
|
||||
{
|
||||
public partial class frmSettings : Form
|
||||
{
|
||||
SoftwareConfiguration softwareConfiguration = null;
|
||||
public frmSettings()
|
||||
{
|
||||
InitializeComponent();
|
||||
softwareConfiguration = new SoftwareConfiguration();
|
||||
|
||||
txt_anlageIP.Text = softwareConfiguration.GetAnlageIP();
|
||||
}
|
||||
|
||||
void makeBindings()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void speichern()
|
||||
{
|
||||
softwareConfiguration.SetAnlageIP(txt_anlageIP.Text);
|
||||
|
||||
}
|
||||
|
||||
private void btn_save_Click(object sender, EventArgs e)
|
||||
{
|
||||
speichern();
|
||||
softwareConfiguration.SaveSettings();
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user