Fehler beim Speichern einer Imprägnierungsbericht ohne Daten behoben Fehler beim Starten einer "first" start anwendung Beim anlegen einer neuer Projekt wird das Dialog gleich geschlossen
38 lines
861 B
C#
38 lines
861 B
C#
using KlassenBIB;
|
|
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
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public partial class frmNewProjekt : Form
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public frmNewProjekt()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void btn_save_Click(object sender, EventArgs e)
|
|
{
|
|
Projekt projekt = new Projekt();
|
|
projekt.Nummer = txt_pro_nr.Text;
|
|
projekt.Ort = txt_ort.Text;
|
|
Global.Instance.SetProjekt(projekt);
|
|
this.Close();
|
|
//Global.Instance.ChangeProjekt(txt_pro_nr.Text);
|
|
}
|
|
}
|
|
}
|