Example #1
0
        private void Button_NewTransaction(OutlayTypesEnum typeOutlay)
        {
            TransactionSettings settings = new TransactionSettings(dateSelected, typeOutlay);

            settings.OnExecutionResult += AddNewTransaction;

            this.Enabled = false;
            settings.Show();
            this.Enabled = true;
        }
Example #2
0
 public TransactionSettings(DateTime date, OutlayTypesEnum typeOutlay) : this()
 {
     this.dateTimeSpend.Value   = date;
     this.textBoxSpendType.Text = typeOutlay.ToString();
     this.generationSource      = TransactionDTO.SourceGeneration.NewTransaction;
 }