private void OpenEntry_Click(object sender, EventArgs e) { if (Login.Role == "Operator") { MessageBox.Show("Operators do not have access to open entries. Please contact administrator for further details.", ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (IsValid) { try { CRMManager.InsertNewCustomerEntry(new CustomerEntry() { CustomerName = CustomerName.Text, Phone = Phone.Text, Email = Email.Text, MarketPlace = "", OrderDate = "", Action = Action.Text, OrderNumber = "", Product = "", Query = Query.Text, Status = "Open", Type = "New", WhatsappMessage = WhatsappMessage.Text }); Notification.Show("Entry Opened.", 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); } } }