Exemplo n.º 1
0
        public AddFirmaWindow(Action <Firma> addingAction)
        {
            InitializeComponent();
            vm = (FirmaWindowsViewModel)this.DataContext;
            vm.CloseDialogAddFirmaFunc = new Func <int, string>(ShowAddFirmaDialogFunc);

            callbackFromParentWindow = addingAction;
        }
Exemplo n.º 2
0
        public EditFirmaWindow(Action <Firma> editingAction, Firma entryToEdit)
        {
            InitializeComponent();

            vm = (FirmaWindowsViewModel)this.DataContext;
            vm.EditFirmaValue           = entryToEdit;
            vm.CloseDialogEditFirmaFunc = new Func <int, string>(ShowEditFirmaDialogFunc);

            callbackFromParentWindow = editingAction;
        }