public AddFirmaWindow(Action <Firma> addingAction) { InitializeComponent(); vm = (FirmaWindowsViewModel)this.DataContext; vm.CloseDialogAddFirmaFunc = new Func <int, string>(ShowAddFirmaDialogFunc); callbackFromParentWindow = addingAction; }
public EditFirmaWindow(Action <Firma> editingAction, Firma entryToEdit) { InitializeComponent(); vm = (FirmaWindowsViewModel)this.DataContext; vm.EditFirmaValue = entryToEdit; vm.CloseDialogEditFirmaFunc = new Func <int, string>(ShowEditFirmaDialogFunc); callbackFromParentWindow = editingAction; }