Beispiel #1
0
 private void AddOneTranAndReceipt(OneTranViewModel oneTranForm)
 {
     foreach (var tuple in oneTranForm.ReceiptList)
     {
         var tran = oneTranForm.GetTran().Clone();
         tran.Amount = tuple.Item1;
         tran.Tags.Add(tuple.Item2);
         tran.Comment = tuple.Item3;
         AddOneTran(tran);
     }
 }
Beispiel #2
0
        private bool Edit()
        {
            OneTranViewModel oneTranForm = IoC.Get <OneTranViewModel>();

            oneTranForm.Init(_model.SelectedTranWrappedForDatagrid.Tran, false);
            bool?result = WindowManager.ShowDialog(oneTranForm);

            if (!result.HasValue || !result.Value)
            {
                return(false);
            }

            oneTranForm.GetTran().CopyInto(_model.SelectedTranWrappedForDatagrid.Tran);
            _model.SortedRows.Refresh();
            return(true);
        }