private void buttonAddEntry_Click(object sender, EventArgs e) { textEntryToAdd = textBoxUserEntry.Text.ToString(); if (textEntryToAdd.Equals("")) { MessageBox.Show("Please type an entry for the agenda", "Add Entry", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (!checkBoxTextOnly.Checked) { FormAddEntry formAdd = new FormAddEntry(); formAdd.ShowDialog(); } else { appTaskManager.ExecuteCommand("ADD", textEntryToAdd + "||"); } FormHome_Load(sender, e); }
public void ExecuteCommand(string commandName, string userEntry) { decoratedClient.ExecuteCommand(commandName, userEntry); }