コード例 #1
0
 private void HandleMouseButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (Lag <= DateTime.Now)
     {
         Lag      = DateTime.Now.AddMilliseconds(Conf.lagTypingUpdate);
         Updating = true;
         TextAddins.UpdateDocument(MainText);
         Updating = false;
     }
 }
コード例 #2
0
        private void HandleKeyUp(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Escape)
            {
                this.Close();
            }

            if (Lag <= DateTime.Now)
            {
                Lag      = DateTime.Now.AddMilliseconds(Conf.lagTypingUpdate);
                Updating = true;
                TextAddins.UpdateDocument(MainText);
                Updating = false;
            }
        }