public void UnhookRichTextBox(RichTextBox textBox) { textBox.TextChanged -= new EventHandler(RichBox_TextChanged); ObjectTime boxTime = objectTimes.FindOrInsertObject(textBox); objectTimes.Remove(boxTime); }
public void RichBox_TextChanged(object sender, EventArgs e) { ObjectTime boxTime = objectTimes.FindOrInsertObject(sender); boxTime.time = DateTime.Now; }