found a few bugs

This commit is contained in:
Spudnut2000 2025-06-25 23:00:43 -05:00
parent 1434e867bd
commit eba8dd8d3a
3 changed files with 43 additions and 38 deletions

View File

@ -38,11 +38,11 @@ partial class AppointmentsForm
deleteButton = new System.Windows.Forms.Button(); deleteButton = new System.Windows.Forms.Button();
showAllButton = new System.Windows.Forms.Button(); showAllButton = new System.Windows.Forms.Button();
appointmentDetails = new System.Windows.Forms.GroupBox(); appointmentDetails = new System.Windows.Forms.GroupBox();
apptTitleLabel = new System.Windows.Forms.Label();
apptTypeLabel = new System.Windows.Forms.Label();
withLabel = new System.Windows.Forms.Label();
startTimeLabel = new System.Windows.Forms.Label();
endTimeLabel = new System.Windows.Forms.Label(); endTimeLabel = new System.Windows.Forms.Label();
startTimeLabel = new System.Windows.Forms.Label();
withLabel = new System.Windows.Forms.Label();
apptTypeLabel = new System.Windows.Forms.Label();
apptTitleLabel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)appointmentDataView).BeginInit(); ((System.ComponentModel.ISupportInitialize)appointmentDataView).BeginInit();
appointmentDetails.SuspendLayout(); appointmentDetails.SuspendLayout();
SuspendLayout(); SuspendLayout();
@ -117,32 +117,14 @@ partial class AppointmentsForm
appointmentDetails.TabStop = false; appointmentDetails.TabStop = false;
appointmentDetails.Text = "Details"; appointmentDetails.Text = "Details";
// //
// apptTitleLabel // endTimeLabel
// //
apptTitleLabel.Location = new System.Drawing.Point(6, 19); endTimeLabel.Location = new System.Drawing.Point(6, 111);
apptTitleLabel.Name = "apptTitleLabel"; endTimeLabel.Name = "endTimeLabel";
apptTitleLabel.Size = new System.Drawing.Size(211, 23); endTimeLabel.Size = new System.Drawing.Size(211, 23);
apptTitleLabel.TabIndex = 0; endTimeLabel.TabIndex = 4;
apptTitleLabel.Text = "Title: "; endTimeLabel.Text = "End: ";
apptTitleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; endTimeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// apptTypeLabel
//
apptTypeLabel.Location = new System.Drawing.Point(6, 42);
apptTypeLabel.Name = "apptTypeLabel";
apptTypeLabel.Size = new System.Drawing.Size(211, 23);
apptTypeLabel.TabIndex = 1;
apptTypeLabel.Text = "Type: ";
apptTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// withLabel
//
withLabel.Location = new System.Drawing.Point(6, 65);
withLabel.Name = "withLabel";
withLabel.Size = new System.Drawing.Size(211, 23);
withLabel.TabIndex = 2;
withLabel.Text = "With: ";
withLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// startTimeLabel // startTimeLabel
// //
@ -153,14 +135,32 @@ partial class AppointmentsForm
startTimeLabel.Text = "Start: "; startTimeLabel.Text = "Start: ";
startTimeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; startTimeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// endTimeLabel // withLabel
// //
endTimeLabel.Location = new System.Drawing.Point(6, 111); withLabel.Location = new System.Drawing.Point(6, 65);
endTimeLabel.Name = "endTimeLabel"; withLabel.Name = "withLabel";
endTimeLabel.Size = new System.Drawing.Size(211, 23); withLabel.Size = new System.Drawing.Size(211, 23);
endTimeLabel.TabIndex = 4; withLabel.TabIndex = 2;
endTimeLabel.Text = "End: "; withLabel.Text = "With: ";
endTimeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; withLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// apptTypeLabel
//
apptTypeLabel.Location = new System.Drawing.Point(6, 42);
apptTypeLabel.Name = "apptTypeLabel";
apptTypeLabel.Size = new System.Drawing.Size(211, 23);
apptTypeLabel.TabIndex = 1;
apptTypeLabel.Text = "Type: ";
apptTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// apptTitleLabel
//
apptTitleLabel.Location = new System.Drawing.Point(6, 19);
apptTitleLabel.Name = "apptTitleLabel";
apptTitleLabel.Size = new System.Drawing.Size(211, 23);
apptTitleLabel.TabIndex = 0;
apptTitleLabel.Text = "Title: ";
apptTitleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// AppointmentsForm // AppointmentsForm
// //

View File

@ -14,11 +14,12 @@ public partial class CustomersForm : Form
UpdateCustomersList(null, EventArgs.Empty); UpdateCustomersList(null, EventArgs.Empty);
Shown += UpdateCustomersList; Shown += UpdateCustomersList;
_form.UpdateCustomersList += UpdateCustomersList;
AddButton.Click += (sender, args) => AddButton.Click += (sender, args) =>
{ {
_form.InitAdd(); _form.InitAdd();
_form.UpdateCustomersList += UpdateCustomersList;
}; };
ModifyButton.Click += (sender, args) => ModifyButton.Click += (sender, args) =>
@ -26,7 +27,6 @@ public partial class CustomersForm : Form
if (_customers is null) return; if (_customers is null) return;
var selectedCustomer = _customers[CustomersDataGrid.CurrentCell.RowIndex]; var selectedCustomer = _customers[CustomersDataGrid.CurrentCell.RowIndex];
_form.InitUpdate(selectedCustomer); _form.InitUpdate(selectedCustomer);
_form.UpdateCustomersList += UpdateCustomersList;
}; };
DeleteButton.Click += (sender, args) => DeleteButton.Click += (sender, args) =>

View File

@ -1,5 +1,10 @@
# ✅ C# Application Development To-Do List # ✅ C# Application Development To-Do List
## Current issues
- [x] Customers dont update when adding
- [ ] Cant select appointment by day anymore
- [ ] Add/Update appt form doesn't update user list
## 1. Login Form ## 1. Login Form
- [x] Create a login form with the following functionality: - [x] Create a login form with the following functionality: