Files
Kanalsanierungsverwaltung/SanSystem/FrmAktuelleBesatzung.cs
2021-05-12 11:38:31 +02:00

39 lines
1.1 KiB
C#

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 FrmAktuelleBesatzung : Form
{
public FrmAktuelleBesatzung()
{
InitializeComponent();
if(Global.Instance.AktuelleBesatzung != string.Empty)
{
string[] besatzung = Global.Instance.AktuelleBesatzung.Split('/');
if(besatzung.Length > 0)
{
txt_vorarbeiter.Text = besatzung[0];
if(besatzung.Length > 1)
{
txt_nacharbeiter.Text = besatzung[1];
}
}
}
}
private void btn_ok_Click(object sender, EventArgs e)
{
Global.Instance.AktuelleBesatzung = string.Format("{0} / {1}", txt_vorarbeiter.Text, txt_nacharbeiter.Text);
this.Close();
}
}
}