32 lines
692 B
C#
32 lines
692 B
C#
namespace OMNIPruefung.ViewModels
|
|
{
|
|
using OMNIPruefung.Models;
|
|
|
|
using System.Windows.Input;
|
|
|
|
public class OmniInspectionVM : BaseVM
|
|
{
|
|
private OmniInspectionModel model;
|
|
|
|
public OmniInspectionVM()
|
|
{
|
|
this.model = new OmniInspectionModel();
|
|
this.Load = new Command(this.LoadComamnd);
|
|
}
|
|
|
|
private string suchNr;
|
|
public string SuchNr
|
|
{
|
|
get => this.suchNr;
|
|
set => this.Set(ref this.suchNr, value, nameof(SuchNr));
|
|
}
|
|
|
|
public ICommand Load { get; }
|
|
|
|
private void LoadComamnd()
|
|
{
|
|
this.model.LoadAuftrag(this.suchNr);
|
|
}
|
|
}
|
|
}
|