2022-07-28 19:18:15 +02:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
using ChatController.Annotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ChatController
|
2017-09-15 09:49:32 +02:00
|
|
|
|
{
|
2022-07-28 19:18:15 +02:00
|
|
|
|
public partial class ChatControlWaitLayer : INotifyPropertyChanged
|
2017-09-15 09:49:32 +02:00
|
|
|
|
{
|
2022-07-28 19:18:15 +02:00
|
|
|
|
private string _DialogText;
|
|
|
|
|
|
|
|
|
|
|
|
public string DialogText
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _DialogText;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
_DialogText = value;
|
|
|
|
|
|
OnPropertyChanged(nameof(DialogText));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ChatControlWaitLayer(string dialogText = null)
|
2017-09-15 09:49:32 +02:00
|
|
|
|
{
|
2019-04-02 13:43:30 +02:00
|
|
|
|
InitializeComponent();
|
2022-07-28 19:18:15 +02:00
|
|
|
|
|
|
|
|
|
|
DataContext = this;
|
|
|
|
|
|
|
|
|
|
|
|
DialogText = dialogText ?? "Daten werden übertragen. Bitte warten...";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
|
|
|
|
|
|
|
[NotifyPropertyChangedInvocator]
|
|
|
|
|
|
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
|
|
|
|
{
|
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
2017-09-15 09:49:32 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|