Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void ExecuteCommand(string commandName, string userEntry)
 {
     decoratedClient.ExecuteCommand(commandName, userEntry);
 }