Edit Stammdaten Mitarbeitsessions
This commit is contained in:
@@ -11,7 +11,16 @@ public partial class AddSessionDialog : Window
|
||||
protected override void OnOpened(EventArgs e)
|
||||
{
|
||||
base.OnOpened(e);
|
||||
this.FindControl<TextBox>("DateBox")?.Focus();
|
||||
if (DataContext is AddSessionDialogViewModel { IsEditing: true })
|
||||
{
|
||||
var commentBox = this.FindControl<TextBox>("CommentBox");
|
||||
commentBox?.Focus();
|
||||
commentBox?.SelectAll();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.FindControl<TextBox>("DateBox")?.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnSave(object? s, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user