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