public AddEditDocumentDisciplineDialog(int id) { InitializeComponent(); AddEditDocumentDisciplineModel model = new AddEditDocumentDisciplineModel(id); model.View = this; model.DataLoaded += () => { DataContext = model; Utils.ResetOriginalValues(this); }; }
public AddEditDocumentDisciplineDialog() { InitializeComponent(); DataContext = new AddEditDocumentDisciplineModel { View = this }; }