private void ConstantIncome_Click(object sender, EventArgs e) { ConstantIncome constantIncome = new ConstantIncome(); constantIncome.Show(); BudgetManager manager = new BudgetManager(); String date; date = DateTime.Now.ToString("yyyy-MM-dd"); string message = "bla"; int amount = 100; manager.AddConstantCost(date, message, amount); }