Ejemplo n.º 1
0
        public void DodajRekord(bool createMode, bool editMode, bool viewMode)
        {
            _incomesAndExpensesRecord = new IncomesAndExpensesRecord(createMode, editMode, viewMode);

            //_globalViewModel._incomesAndExpensesRecordViewModel.Salary = 0.00m;

            _incomesAndExpensesRecord.Show();
        }
Ejemplo n.º 2
0
        public void EdytujRekord(bool createMode, bool editMode, bool viewMode)
        {
            IncomesAndExpenses _editableIncomesAndExpenses = new IncomesAndExpenses();

            _editableIncomesAndExpenses = _globalViewModel._dataContext.IncomesAndExpenses.Find(SelectedRecord.Id);

            //_globalViewModel._incomesAndExpensesRecordViewModel.Salary = 0.00m;

            _incomesAndExpensesRecord = new IncomesAndExpensesRecord(_editableIncomesAndExpenses.Id, editMode);

            _incomesAndExpensesRecord.Show();
        }