示例#1
0
 /// <summary>
 /// リフレッシュ
 /// </summary>
 private void refresh0()
 {
     refresh();
     LOG.NoJumpNext();
     LOG.WriteMesFormatLine(LLV.INF, Mes.Format.FromString("@LogGroupPanel.Welcome@"));
     LOG.NoJumpNext();
     LOG.WriteLine(LLV.INF, "          Version {0}", null, Application.ProductVersion);
     LOG.NoJumpNext();
     LOG.WriteMesFormatLine(LLV.INF, Mes.Format.FromString("@LogGroupPanel.LangInfo@"), Properties.Resources.li_hint);
     _tarPane.Invalidate(null);
 }
示例#2
0
        private void OnCancel(object sender, SpeechRecognitionEventArgs e)
        {
            if (_talkID == null)
            {
                return;
            }

            LOG.NoJumpNext();
            LOG.WriteLine(LLV.DEV, $"{DateTime.Now.ToString(TimeUtil.FormatYMDHMSms)} {GetType().Name}({GetTargetRecognizeLanguage()}).OnCancel : {e.Result.Text}");
            Hot.SpeechEventQueue.Enqueue(new SpeechEvent
            {
                RowID         = ID.Value,
                Action        = SpeechEvent.Actions.Canceled,
                TimeGenerated = DateTime.Now,
                SessionID     = _talkID,
                Text          = e.Result.Text,
            });
            _talkID = null;
            Token.Add(TokenSpeechEventQueued, this);
            GetRoot().FlushFeatureTriggers();
        }
示例#3
0
        private void OnRecognizing(object sender, SpeechRecognitionEventArgs e)
        {
            LOG.NoJumpNext();
            LOG.WriteLine(LLV.DEV, $"{DateTime.Now.ToString(TimeUtil.FormatYMDHMSms)} {GetType().Name}({GetTargetRecognizeLanguage()}).OnRecognizing : {e.Result.Text}");

            if (_talkID == null)
            {
                _talkID = Guid.NewGuid().ToString();
                Hot.SpeechEventQueue.Enqueue(new SpeechEvent
                {
                    RowID         = ID.Value,
                    Action        = SpeechEvent.Actions.Start,
                    TimeGenerated = DateTime.Now,
                    SessionID     = _talkID,
                });
                Hot.SpeechEventQueue.Enqueue(new SpeechEvent
                {
                    RowID         = ID.Value,
                    Action        = SpeechEvent.Actions.SetColor,
                    TimeGenerated = DateTime.Now,
                    SessionID     = _talkID,
                    Text          = GetBarColor().ToArgb().ToString(),
                });
            }

            Hot.SpeechEventQueue.Enqueue(new SpeechEvent
            {
                RowID         = ID.Value,
                Action        = SpeechEvent.Actions.Recognizing,
                TimeGenerated = DateTime.Now,
                SessionID     = _talkID,
                Text          = e.Result.Text,
            });
            Token.Add(TokenSpeechEventQueued, this);
            GetRoot().FlushFeatureTriggers();
        }
示例#4
0
 private void OnSessionStopped(object sender, SessionEventArgs e)
 {
     LOG.NoJumpNext();
     LOG.WriteLine(LLV.DEV, $"{DateTime.Now.ToString(TimeUtil.FormatYMDHMSms)} {GetType().Name}({GetTargetRecognizeLanguage()}).OnSessionStopped : {e}");
 }