div. Anpassungen
- Settings *.xml eingefügt - div. Anwendungen eingefügt - kleine Fehler behoben automatische zentrieren der Maus entfernt div. Anpassungen Squashed 'FSI.Lib/' changes from 24aa22a..9a24247 9a24247 Version erhöht 9536f8a div. Anpassungen für FSI.BT.Tools git-subtree-dir: FSI.Lib git-subtree-split: 9a242472bc63c937efcdaaa4e391c5733abe2891 div. Anpassungen div. Fehlerbehoben
This commit is contained in:
48
FSI.BT.Tools/Gui/FrmAdmin.xaml
Normal file
48
FSI.BT.Tools/Gui/FrmAdmin.xaml
Normal file
@@ -0,0 +1,48 @@
|
||||
<Window x:Class="FSI.BT.Tools.Gui.FrmAdmin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:FSI.BT.Tools.Gui"
|
||||
mc:Ignorable="d"
|
||||
Title="Admin-/Benutzerverwaltung"
|
||||
SizeToContent="WidthAndHeight"
|
||||
Height="Auto"
|
||||
MinWidth="800"
|
||||
Loaded="Window_Loaded">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="200" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="200" />
|
||||
<RowDefinition Height="30" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Content="Benutzer:" />
|
||||
<TextBox x:Name="tbUsers"
|
||||
Grid.Row="1"
|
||||
AcceptsReturn="true"
|
||||
VerticalScrollBarVisibility="Visible"
|
||||
HorizontalScrollBarVisibility="Visible" />
|
||||
|
||||
<Label Grid.Row="2"
|
||||
Content="Admins:" />
|
||||
<TextBox x:Name="tbAdmins"
|
||||
Grid.Row="3"
|
||||
AcceptsReturn="true"
|
||||
VerticalScrollBarVisibility="Visible"
|
||||
HorizontalScrollBarVisibility="Visible" />
|
||||
|
||||
<StackPanel Grid.Row="4" Orientation="Horizontal">
|
||||
<Button x:Name="btnOk"
|
||||
Margin="5 5 5 5"
|
||||
Content="Speichern"
|
||||
Click="btnOk_Click" />
|
||||
<Button x:Name="btnCancel"
|
||||
Margin="5 5 5 5 "
|
||||
Content="Abbruch"
|
||||
Click="btnCancel_Click" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
51
FSI.BT.Tools/Gui/FrmAdmin.xaml.cs
Normal file
51
FSI.BT.Tools/Gui/FrmAdmin.xaml.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace FSI.BT.Tools.Gui
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für FrmAdmin.xaml
|
||||
/// </summary>
|
||||
public partial class FrmAdmin : Window
|
||||
{
|
||||
|
||||
public string[] Admins { get; set; }
|
||||
public string[] Users { get; set; }
|
||||
|
||||
public FrmAdmin()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnOk_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Admins = tbAdmins.Text.Split(Environment.NewLine);
|
||||
Users = tbUsers.Text.Split(Environment.NewLine);
|
||||
DialogResult = true;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DialogResult = false;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
tbAdmins.Text = String.Join(Environment.NewLine, Admins);
|
||||
tbUsers.Text = String.Join(Environment.NewLine, Users);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user