using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; using System.Windows.Input; namespace QuikDawEditor { public partial class SplashWindow : Window, INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged([CallerMemberName] string propertyName = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } public SplashWindow() { InitializeComponent(); } private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { this.Hide(); } private void Window_PreviewMouseDown(object sender, MouseButtonEventArgs e) { this.Hide(); } private string _CurrOperation = "-----"; public string CurrOperation { get { return _CurrOperation; } set { _CurrOperation = value; NotifyPropertyChanged(nameof(CurrOperation)); } } } }