Пример #1
0
 private void ExecuteCommand(FormFader.Command FadeCommand, bool bWait)
 {
     if (FadeCommand == Command.FadeExit)
     {
         if (m_bFadeExitCalled)
         {
             return;
         }
         m_bFadeExitCalled = true;
     }
     m_CurrentCommand = FadeCommand;
     m_EventCommandDone.Reset();
     m_AutoEvent.Set();
     if (bWait)
     {
         m_EventCommandDone.WaitOne();
     }
 }
Пример #2
0
 private void InitClass(System.Windows.Forms.Form form, FormFader.FadeSpeed Speed)
 {
     m_form = form;
     m_AutoEvent = new System.Threading.AutoResetEvent(false);
     m_EventCommandDone = new System.Threading.ManualResetEvent(false);
     m_thread = new System.Threading.Thread(new System.Threading.ThreadStart(Fader));
     m_thread.Start();
 }
Пример #3
0
 public FormFader(System.Windows.Forms.Form form, FormFader.FadeSpeed Speed)
 {
     InitClass(form,Speed);
 }
Пример #4
0
 private void ExecuteCommand(FormFader.Command FadeCommand)
 {
     this.ExecuteCommand(FadeCommand,false);
 }