public TransactionSettings(TransactionView transactionView) : this() { this.textBoxSpendType.Text = transactionView.Type; this.text_amount.Text = Normalizer.NormalizeAmount(transactionView.Amount); this.dateTimeSpend.Value = transactionView.Date; this.transactionCodeSelector.SelectedText = transactionView.Code; this.text_description.Text = transactionView.Description; this.transactionID = transactionView.ID; this.internalTransactionID = transactionView.Internal_ID; this.generationSource = transactionView.Source; }
public TransactionSettings(DateTime date, OutlayTypesEnum typeOutlay) : this() { this.dateTimeSpend.Value = date; this.textBoxSpendType.Text = typeOutlay.ToString(); this.generationSource = TransactionDTO.SourceGeneration.NewTransaction; }