Schachtanbindung angestellt

This commit is contained in:
Husky
2018-07-01 14:57:21 +02:00
parent bf38d340fc
commit b832a0319f
8 changed files with 94 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ namespace SanSystem
{
public static readonly Global instance = new Global();
public string projektpfad = "temp";
public ILanguage language = null;
public static Global Instance
@@ -21,6 +22,8 @@ namespace SanSystem
}
}
public void LoadLanguage()
{
language = Language.Language.GetLanguage(Language.BUILTINLANGUAGES.GERMAN);

View File

@@ -22,6 +22,7 @@ namespace SanSystem
LINERGRUNDLAGEN
}
InlinerSanierung inliner = null;
string destinationPath = string.Empty;
public UCInliner(InlinerSanierung san)
{
InitializeComponent();
@@ -60,6 +61,7 @@ namespace SanSystem
private void UCInliner_Load(object sender, EventArgs e)
{
CheckDirectories();
cb_genehmigung.DataBindings.Clear();
cb_stvo.DataBindings.Clear();
cb_wasserhaltung.DataBindings.Clear();
@@ -76,7 +78,7 @@ namespace SanSystem
cb_genehmigung.DataBindings.Add(new Binding("Checked", inliner, "genehmigungVorhanden"));
cb_stvo.DataBindings.Add(new Binding("Checked", inliner, "sTVOAbsicherung"));
cb_wasserhaltung.DataBindings.Add(new Binding("Checked", inliner, "wasserhaltungEingerichtet"));
txt_temp_aussen.DataBindings.Add(new Binding("Text", inliner, "TempAusen", false, DataSourceUpdateMode.OnPropertyChanged));
txt_temp_aussen.DataBindings.Add(new Binding("Text", inliner, "TempAusen"));
txt_temp_kanal.DataBindings.Add(new Binding("Text", inliner, "TempKanal"));
}
@@ -98,9 +100,7 @@ namespace SanSystem
private void CheckDirectories()
{
string verzeichnispfad = string.Format("{0}-{1}")
string path = Path.Combine("")
if(!Directory.Exists())
destinationPath = inliner.CheckVerzeichnisse(Global.Instance.projektpfad);
}
}
}

View File

@@ -37,6 +37,12 @@ namespace SanSystem
tab.Controls.Add(uCInliner);
tabControl1.TabPages.Add(tab);
}
else if(san is SchachtAnbindung)
{
tab.Text = "Schachtanbindung";
tabControl1.TabPages.Add(tab);
}
}
@@ -86,10 +92,22 @@ namespace SanSystem
FrmSelectNewSan frmSelectNewSan = new FrmSelectNewSan();
frmSelectNewSan.AddInlinerClicked += FrmSelectNewSan_AddInlinerClicked;
frmSelectNewSan.AddSchachtAnbindungClicked += FrmSelectNewSan_AddSchachtAnbindungClicked;
frmSelectNewSan.ShowDialog();
}
private void FrmSelectNewSan_AddSchachtAnbindungClicked(object sender, EventArgs e)
{
SchachtAnbindung schachtAnbindung = new SchachtAnbindung();
schachtAnbindung.Inspektionsobjekt = inspektionsobjekt;
inspektionsobjekt.Sanierung.Add(schachtAnbindung);
TabPage tab = new TabPage();
tab.Text = "Schachtanbindung";
tabControl1.TabPages.Add(tab);
}
private void FrmSelectNewSan_AddInlinerClicked(object sender, EventArgs e)
{
if(inspektionsobjekt.Sanierung.Count > 0)
@@ -104,6 +122,7 @@ namespace SanSystem
}
}
InlinerSanierung san = new InlinerSanierung();
san.Inspektionsobjekt = inspektionsobjekt;
inspektionsobjekt.Sanierung.Add(san);
TabPage tab = new TabPage();
tab.Text = "InlinerSanierung";
@@ -112,5 +131,7 @@ namespace SanSystem
tab.Controls.Add(uCInliner);
tabControl1.TabPages.Add(tab);
}
}
}