Files
Kanalsanierungsverwaltung/SanSystem/frmOffsetSet.cs
HuskyTeufel 09ec9b1cd1 Code cleanup
Offset werte können nun mit Datum versehen werden
2021-03-11 16:39:26 +01:00

35 lines
887 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SanSystem
{
public partial class frmOffsetSet : Form
{
public DateTime Offset;
public frmOffsetSet(DateTime off)
{
InitializeComponent();
if (off != DateTime.MinValue)
{
txt_offset.Text = off.TimeOfDay.ToString();
dateTimePicker.Value = off;
}
}
private void Btn_save_Click(object sender, EventArgs e)
{
string s = string.Format("{0} {1}", dateTimePicker.Value.ToShortDateString(), txt_offset.Text);
Offset = DateTime.Parse(s);
this.Close();
}
}
}