mini update
This commit is contained in:
@@ -50,9 +50,9 @@
|
||||
|
||||
<!--<CheckBox x:Name="ChatAktive" Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>-->
|
||||
|
||||
<GroupBox Margin="3" Grid.Row="2" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="3" Header="ownChat Benutzer Konto" >
|
||||
<!-- ####################### Style Design gedönse Style="{x:Null}" ############################################# -->
|
||||
<!-- <GroupBox.Template>
|
||||
<GroupBox Margin="3" Grid.Row="2" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="3" Header="ownChat Benutzer Konto" Style="{x:Null}" >
|
||||
<!-- ####################### Style Design gedönse ## -->
|
||||
<GroupBox.Template>
|
||||
<ControlTemplate TargetType="{x:Type GroupBox}">
|
||||
<Grid SnapsToDevicePixels="true">
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -68,7 +68,9 @@
|
||||
<RowDefinition Height="6"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border BorderBrush="Black" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
|
||||
<Border BorderBrush="Black" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
|
||||
|
||||
|
||||
<Border BorderBrush="Black" BorderThickness="1.25" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
|
||||
<Border.OpacityMask>
|
||||
<MultiBinding ConverterParameter="7">
|
||||
<MultiBinding.Converter>
|
||||
@@ -79,18 +81,18 @@
|
||||
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
|
||||
</MultiBinding>
|
||||
</Border.OpacityMask>
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
|
||||
<Border BorderBrush="Black" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
|
||||
</Border>
|
||||
</Border>
|
||||
|
||||
|
||||
<Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2" Background="Transparent" BorderBrush="Black" CornerRadius="2" BorderThickness="1">
|
||||
<ContentPresenter ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||
</Border>
|
||||
|
||||
<ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</GroupBox.Template>-->
|
||||
<!-- ######################################################################################################################################################################### -->
|
||||
</GroupBox.Template>
|
||||
<!-- ################################################ -->
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
|
||||
@@ -175,6 +175,7 @@ namespace BeWo.View
|
||||
private void ChatMainControl_OnOnClose()
|
||||
{
|
||||
_emojiView = null;
|
||||
ChatMainControl.SpeichereMessageInfoInDatei();
|
||||
|
||||
this.Dispatch(delegate
|
||||
{
|
||||
|
||||
@@ -1310,28 +1310,35 @@ namespace BeWo.View
|
||||
|
||||
if (empAppCodes != null && empAppCodes.Count > 0)
|
||||
{
|
||||
var xxx = empAppCodes.Last();
|
||||
string _Code = "";
|
||||
foreach (var item in empAppCodes)
|
||||
{
|
||||
if(item.EmployeeCode != null && !item.EmployeeCode.Equals(""))
|
||||
_Code = item.EmployeeCode;
|
||||
}
|
||||
|
||||
//var xxx = empAppCodes.Last();
|
||||
|
||||
string _kundennummer = BeWoApp.Tenant;
|
||||
|
||||
string _benutzername = BeWoApp.UserName;
|
||||
string _passwort = "12345678"; // welches passwort wird hier benutzt
|
||||
string _passwort = BeWoApp.UserPassword;
|
||||
string _apikey;
|
||||
|
||||
string _ChatCode = "";
|
||||
if (xxx.EmployeeCode != null && !xxx.EmployeeCode.Equals(""))
|
||||
{
|
||||
_ChatCode = xxx.EmployeeCode;
|
||||
}
|
||||
//string _ChatCode = "";
|
||||
//if (xxx.EmployeeCode != null && !xxx.EmployeeCode.Equals(""))
|
||||
//{
|
||||
// _ChatCode = xxx.EmployeeCode;
|
||||
//}
|
||||
|
||||
if (BeWoApp.Mandator.Apikey != null)
|
||||
_apikey = BeWoApp.Mandator.Apikey;
|
||||
else
|
||||
_apikey = "0000"; //erstmal zu default zwecken damit nichts abstürzt
|
||||
|
||||
if (_ChatCode.Equals("")) //Weitere Abfragen von nöten
|
||||
if (!_Code.Equals("")) //Weitere Abfragen von nöten
|
||||
{
|
||||
Login _login = new Login(_kundennummer, _ChatCode, _benutzername, _passwort, _apikey);
|
||||
Login _login = new Login(_kundennummer, _Code, _benutzername, _passwort, _apikey);
|
||||
|
||||
var x = _login.AnmeldevorgangDurchFuehren();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user