private void CloseEntry_Click(object sender, EventArgs e) { try { if (Login.Role == "Operator") { MessageBox.Show("Operators do not have access close entries. Please contact administrator for further details.", ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } CRMManager.UpdateCustomerEntry(selectedId, "Closed"); Notification.Show("Entry Closed.", Notification.Type.Success); Clear(); } catch (Exception ex) { MessageBox.Show($"Could not open entry due to:\nException type: {ex.GetType()}\nMessage: {ex.Message}", ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); } }