committed
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GuiWPF_ViewModel
|
||||
{
|
||||
public class MainViewModel : NotificationObject
|
||||
{
|
||||
public string Titel { get; set; }
|
||||
|
||||
public MainViewModel()
|
||||
{
|
||||
Titel = "Dichtheitsprüfung by Damian";
|
||||
//Initialisieren();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace GuiWPF_ViewModel
|
||||
{
|
||||
public class NotificationObject : INotifyPropertyChanged
|
||||
{
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void OnPropertyChanged([CallerMemberName]string propertyName="")
|
||||
{
|
||||
if(PropertyChanged != null)
|
||||
{
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GuiWPF_ViewModel
|
||||
{
|
||||
public class ViewModelBase : NotificationObject
|
||||
{
|
||||
private bool valIsBusy;
|
||||
private string valBusyMessage;
|
||||
|
||||
public bool IsBusy
|
||||
{
|
||||
get => valIsBusy;
|
||||
set
|
||||
{
|
||||
if(valIsBusy != value)
|
||||
{
|
||||
valIsBusy = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
public string BusyMessage
|
||||
{
|
||||
get => valBusyMessage;
|
||||
set
|
||||
{
|
||||
if(valBusyMessage != value)
|
||||
{
|
||||
valBusyMessage = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user