Commit b981b575 authored by Alexander Scharfenberg's avatar Alexander Scharfenberg
Browse files

little changes for ChangeUserWindow.xaml.cs

parent c93111ed
......@@ -7,6 +7,7 @@ Global
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Publish|Any CPU = Publish|Any CPU
Release1.0|Any CPU = Release1.0|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A7807FB8-83C4-4276-AC88-9DC93471234F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
......@@ -16,5 +17,7 @@ Global
{A7807FB8-83C4-4276-AC88-9DC93471234F}.Publish|Any CPU.ActiveCfg = Publish|Any CPU
{A7807FB8-83C4-4276-AC88-9DC93471234F}.Publish|Any CPU.Build.0 = Publish|Any CPU
{A7807FB8-83C4-4276-AC88-9DC93471234F}.Publish|Any CPU.Deploy.0 = Publish|Any CPU
{A7807FB8-83C4-4276-AC88-9DC93471234F}.Release1.0|Any CPU.ActiveCfg = Release1.0|Any CPU
{A7807FB8-83C4-4276-AC88-9DC93471234F}.Release1.0|Any CPU.Build.0 = Release1.0|Any CPU
EndGlobalSection
EndGlobal
......@@ -67,9 +67,7 @@ namespace Raumverwaltung_HMWK
}
else
{
}
try
try
{
SqLiteDataAccess.ChangeUser(NameInput.Text, VorNameInput.Text, DepartmentInput.Text,
ReferatInput.Text, OrgaInput.Text, NumberInput.Text,
......@@ -96,8 +94,8 @@ namespace Raumverwaltung_HMWK
MessageBoxButton.OK,
MessageBoxImage.Error);
}
}
break;
}
case MessageBoxResult.No:
......
......@@ -40,7 +40,7 @@
<StackPanel Grid.Row="2" Orientation="Horizontal" Background="Lavender">
<StackPanel Orientation="Vertical">
<TextBlock FontSize="15" HorizontalAlignment="Center">Notizfeld:</TextBlock>
<TextBox Name="Notefield" Margin="10" Height="70" Width="850"></TextBox>
<TextBox Name="Notefield" Margin="60,10,0,0" Height="70" Width="850"></TextBox>
</StackPanel>
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Width="80" Height="50" Margin="50,30,0,0">
<Button Content="Speichern" Click="SaveNote"></Button>
......
......@@ -119,8 +119,8 @@ namespace Raumverwaltung_HMWK
private void CreateButton(Room room)
{
Button newBtn = new Button();
newBtn.Width = 100;
newBtn.Height = 30;
newBtn.Width = 70;
newBtn.Height = 25;
newBtn.Content = room.Name;
newBtn.Name = "_"+room.Id;
newBtn.FontSize = 15;
......
......@@ -38,6 +38,9 @@
<OutputPath>bin\Publish\</OutputPath>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release1.0|AnyCPU' ">
<OutputPath>bin\Release1.0\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Costura, Version=5.6.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\Costura.Fody.5.6.0\lib\netstandard1.0\Costura.dll</HintPath>
......
......@@ -645,8 +645,7 @@ namespace Raumverwaltung_HMWK
using (IDbConnection cnn = new SQLiteConnection(new SQLiteConnection(LoadConnectionString())))
{
bool exists = false;
string sql = "";
string sql = "Select COUNT(*) from User where Vorname=@vorname AND Nachname=@name AND Id!=@userId";
var dynamicParameters = new DynamicParameters();
dynamicParameters.Add("name", name);
dynamicParameters.Add("vorname", vorname);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment