Example #1
0
 private void Close(PromptEvent pEvent)
 {
     if (Name == pEvent.Name)
     {
         TransitionTo(m_StateClosed, s_TranIdx_Closing_Closed);
     }
 }
Example #2
0
 private void Closing(PromptEvent pEvent)
 {
     if (Name == pEvent.Name)
     {
         TransitionTo(m_StateClosing, s_TranIdx_Shown_Closing);
         PostFIFO(new PromptEvent(InternalSignal.PromptClosing, pEvent));
     }
 }
Example #3
0
 private void Showing(PromptEvent pEvent)
 {
     if (Name == pEvent.Name)
     {
         TransitionTo(m_StateShowing, s_TranIdx_Created_Showing);
         PostFIFO(new PromptEvent(InternalSignal.PromptShowing, pEvent));
     }
 }
Example #4
0
 private void Show(PromptEvent pEvent)
 {
     if (Name == pEvent.Name)
     {
         try
         {
             TransitionTo(m_StateShown, s_TranIdx_Showing_Shown);
             qf4net.QF.Instance.Publish(new PromptEvent(QFSignal.PromptShown, Name));
             Prompt.Show(pEvent.Text, pEvent.Timeout);
         }
         catch (Exception ex)
         {
             TransitionTo(m_StateFaulted, s_TranIdx_Showing_Faulted);
         }
     }
 }
Example #5
0
        internal PromptEvent(InternalSignal signal, PromptEvent source)
            : base((int)signal)
        {
            switch (signal)
            {
            case InternalSignal.PromptShowing:
            case InternalSignal.PromptClosing:
                Name    = source.Name;
                Text    = source.Text;
                Timeout = source.Timeout;
                Error   = source.Error;
                AdditionalDescription = source.AdditionalDescription;
                break;

            default:
                throw new ArgumentException("Invalid internal prompt signal.", "signal");
            }
        }