47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
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.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace BeWo.View.Detail
|
|
{
|
|
/// <summary>
|
|
/// Interaktionslogik für CustomerWohnhilfeView.xaml
|
|
/// </summary>
|
|
public partial class CustomerWohnhilfeView : UserControl
|
|
{
|
|
public bool PermissionCustomerWohnhilfeManage { get; } = BeWoApp.HasLoggedOnUserRight(BS.Shared.UserRightType.Customer_Wohnhilfe_Manage);
|
|
|
|
public CustomerWohnhilfeView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Wohnhilfe_Display_Edit_Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
popup_Wohnhilfe_Displayname_Edit.IsOpen = true;
|
|
}
|
|
|
|
private void popup_Wohnhilfe_Displayname_Edit_Opened(object sender, EventArgs e)
|
|
{
|
|
Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Input, new Action(Textbox_SelectAll));
|
|
}
|
|
|
|
private void Textbox_SelectAll()
|
|
{
|
|
txt_Wohnhilfe_Displayname_Edit.Focus();
|
|
txt_Wohnhilfe_Displayname_Edit.SelectAll();
|
|
}
|
|
}
|
|
}
|