diff --git a/ENI2/Controls/ReportingPartyControl.xaml b/ENI2/Controls/ReportingPartyControl.xaml
index 2058f9a3..24a75514 100644
--- a/ENI2/Controls/ReportingPartyControl.xaml
+++ b/ENI2/Controls/ReportingPartyControl.xaml
@@ -20,6 +20,7 @@
+
diff --git a/ENI2/Controls/ReportingPartyControl.xaml.cs b/ENI2/Controls/ReportingPartyControl.xaml.cs
index 368ac39b..94becccd 100644
--- a/ENI2/Controls/ReportingPartyControl.xaml.cs
+++ b/ENI2/Controls/ReportingPartyControl.xaml.cs
@@ -59,7 +59,7 @@ namespace ENI2.Controls
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(selectedParty);
}
}
- }
+ }
}
#region grid event handler
@@ -98,7 +98,7 @@ namespace ENI2.Controls
{
ReportingParty rp = new ReportingParty();
EditReportingPartyDialog ebd = new EditReportingPartyDialog();
- ebd.ReportingParty = rp;
+ ebd.ReportingParty = rp;
if (ebd.ShowDialog() ?? false)
{
diff --git a/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs b/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs
index 1d646158..4acb71fd 100644
--- a/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs
+++ b/ENI2/DetailViewControls/PortCallDetailControl.xaml.cs
@@ -67,8 +67,9 @@ namespace ENI2.DetailViewControls
this.RegisterTextboxChange(this.textBox_AgentPostalCode, Message.NotificationClass.AGNT);
this.RegisterTextboxChange(this.textBox_AgentStreetAndNumber, Message.NotificationClass.AGNT);
this.RegisterTextboxChange(this.textBox_AgentCountry, Message.NotificationClass.AGNT);
-
+
this.buttonSaveTemplate.IsEnabled = DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].IsEditor;
+ this.buttonDeleteTemplate.IsEnabled = DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].IsEditor;
}
public override void Initialize()
@@ -110,7 +111,7 @@ namespace ENI2.DetailViewControls
this.dataGridCallPurposes.EditRequested += DataGridCallPurposes_EditRequested;
this.dataGridCallPurposes.AddingNewItem += DataGridCallPurposes_AddingNewItem;
this.dataGridCallPurposes.CreateRequested += DataGridCallPurposes_CreateRequested;
- this.dataGridCallPurposes.DeleteRequested += DataGridCallPurposes_DeleteRequested;
+ this.dataGridCallPurposes.DeleteRequested += DataGridCallPurposes_DeleteRequested;
this.agentGroupBox.DataContext = _agnt;
@@ -140,8 +141,7 @@ namespace ENI2.DetailViewControls
private void DataGridCallPurposes_DeleteRequested(DatabaseEntity obj)
{
- CallPurpose cp = obj as CallPurpose;
- if (cp != null)
+ if (obj is CallPurpose cp)
{
// are you sure dialog is in base class
_noa_nod.CallPurposes.Remove(cp);
@@ -153,7 +153,7 @@ namespace ENI2.DetailViewControls
}
private void DataGridCallPurposes_CreateRequested()
- {
+ {
EditCallPurposeDialog ecpd = new EditCallPurposeDialog();
ecpd.AddClicked += () =>
{
@@ -258,16 +258,15 @@ namespace ENI2.DetailViewControls
private void comboBox_AgentTemplate_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Trace.WriteLine("combo selection changed");
- AGNT_Template at = this.comboBox_AgentTemplate.SelectedItem as AGNT_Template;
- if(at != null)
+ if (this.comboBox_AgentTemplate.SelectedItem is AGNT_Template at)
{
this.textBoxTemplateTitle.Text = at.AgentTitle;
- this.buttonDeleteTemplate.IsEnabled = true;
+ this.buttonDeleteTemplate.IsEnabled = true;
this.buttonSetTemplate.IsEnabled = true;
this._currentTemplate = at;
}
- }
+ }
private void buttonDeleteTemplate_Click(object sender, RoutedEventArgs e)
{
diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj
index 8c8df448..675af86c 100644
--- a/ENI2/ENI2.csproj
+++ b/ENI2/ENI2.csproj
@@ -36,7 +36,7 @@
5.4.0.0
true
publish.html
- 1
+ 3
7.7.0.%2a
false
true
@@ -84,7 +84,7 @@
- 62DE8527C377957850DB503DA52FF66F664BD459
+ F2C2D0164244EC89955EF50201EE24C2A300FF0B
true
diff --git a/ENI2/EditControls/EditLADGDialog.xaml b/ENI2/EditControls/EditLADGDialog.xaml
index 13f89835..457bc9b0 100644
--- a/ENI2/EditControls/EditLADGDialog.xaml
+++ b/ENI2/EditControls/EditLADGDialog.xaml
@@ -19,7 +19,7 @@ Copyright (c) 2017 schick Informatik
-
+
@@ -45,15 +45,20 @@ Copyright (c) 2017 schick Informatik
-
+
-
+
-
+
+
+
+
+
+