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

            callbackFromParentWindow = addingAction;
        }
示例#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;
        }