private void Button_NewTransaction(OutlayTypesEnum typeOutlay) { TransactionSettings settings = new TransactionSettings(dateSelected, typeOutlay); settings.OnExecutionResult += AddNewTransaction; this.Enabled = false; settings.Show(); this.Enabled = true; }
public TransactionSettings(DateTime date, OutlayTypesEnum typeOutlay) : this() { this.dateTimeSpend.Value = date; this.textBoxSpendType.Text = typeOutlay.ToString(); this.generationSource = TransactionDTO.SourceGeneration.NewTransaction; }