예제 #1
0
 private void ShowLoginingTopForm(object sValue)
 {
     try
     {
         WaitForm waitForm = new WaitForm()
         {
             Text = string.Concat(Variable.sTitle, Variable.sVersion)
         };
         waitForm.seSkin.SkinFile = Variable.sSkinFiles[Convert.ToInt32(Variable.sSkinDataIndex)];
         waitForm.Show();
         while (this.bShow)
         {
             waitForm.lblText.Text = WaitForm.sText;
             Thread.Sleep(100);
             waitForm.TopMost = true;
             Application.DoEvents();
         }
         waitForm.Close();
         waitForm = null;
     }
     catch (ThreadAbortException threadAbortException)
     {
         Thread.Sleep(300);
         Thread.ResetAbort();
     }
     catch (Exception exception)
     {
         Record.execFileRecord("ShowLoginingTopForm", exception.Message);
     }
 }
예제 #2
0
파일: WaitForm.cs 프로젝트: lexzh/Myproject
 private void ShowLoginingTopForm(object sValue)
 {
     try
     {
         WaitForm waitForm = new WaitForm()
         {
             Text = string.Concat(Variable.sTitle, Variable.sVersion)
         };
         waitForm.seSkin.SkinFile = Variable.sSkinFiles[Convert.ToInt32(Variable.sSkinDataIndex)];
         waitForm.Show();
         while (this.bShow)
         {
             waitForm.lblText.Text = WaitForm.sText;
             Thread.Sleep(100);
             waitForm.TopMost = true;
             Application.DoEvents();
         }
         waitForm.Close();
         waitForm = null;
     }
     catch (ThreadAbortException threadAbortException)
     {
         Thread.Sleep(300);
         Thread.ResetAbort();
     }
     catch (Exception exception)
     {
         Record.execFileRecord("ShowLoginingTopForm", exception.Message);
     }
 }