예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }