c969-project/C969Project/Forms/DashboardForm.cs
2025-06-26 21:10:19 -05:00

29 lines
727 B
C#

namespace C969Project;
public partial class DashboardForm : Form
{
private CustomersForm _customersForm = new();
private AppointmentsForm _appointmentsForm = new();
private ReportsForm _reportsForm = new();
public DashboardForm()
{
InitializeComponent();
CustomersButton.Click += (sender, args) =>
{
_customersForm.ShowDialog();
_customersForm.UpdateCustomersList(null, EventArgs.Empty);
};
AppointmentsButton.Click += (sender, args) =>
{
_appointmentsForm.ShowDialog();
};
ReportsButton.Click += (sender, args) =>
{
_reportsForm.ShowDialog();
};
}
}