private void CreateMessageToolStripMenuItem_Click(object sender, EventArgs e) { if (_messages.Add()) { if (!_messages.SaveMessages()) { MessageBox.Show("Unable to save some or all messages.", "Error Occurred.", MessageBoxButtons.OK, MessageBoxIcon.Error); } MMV.ClearMessageInfo(); MMV.UpdateMessagesView(); TriggerDelayedRefresh(); } }
private void CreateButton_Click(object sender, EventArgs e) { if (_messages.Add()) { if (!_messages.SaveMessages()) { MessageBox.Show("Unable to save some or all messages.", "Error Occurred.", MessageBoxButtons.OK, MessageBoxIcon.Error); } ClearMessageDetails(); ToggleButtons(false, DASH); SearchTB.SetText(string.Empty); UpdateMessages(); ClearMessageDisplay(); } }