private void clearButton_Click(object sender, EventArgs e) { ItemRemove = null; textInsert.Text = ""; clearButton.Enabled = false; checkButton.Enabled = false; }
private void removeButton_Click(object sender, EventArgs e) { ItemRemove = new ItemsToRemove(textInsert.Text); ItemRemove.RemoveText(); textInsert.Text = ItemRemove.ToString(); checkButton.Enabled = true; clearButton.Enabled = true; }