コード例 #1
0
        public void UnhookRichTextBox(RichTextBox textBox)
        {
            textBox.TextChanged -= new EventHandler(RichBox_TextChanged);
            ObjectTime boxTime = objectTimes.FindOrInsertObject(textBox);

            objectTimes.Remove(boxTime);
        }
コード例 #2
0
        public void RichBox_TextChanged(object sender, EventArgs e)
        {
            ObjectTime boxTime = objectTimes.FindOrInsertObject(sender);

            boxTime.time = DateTime.Now;
        }