示例#1
0
        public void Close()
        {
            bool exitFlag     = false;
            int  totleSeconds = (int)ts.TotalSeconds;

            while (exitFlag == false)
            {
                while (totleSeconds > 0)
                {
                    System.Threading.Thread.Sleep(1000);
                    totleSeconds--;
                    System.Windows.Forms.Application.DoEvents();
                }
                exitFlag = true;
            }
            LkProcess.Close(lpClassName, lpWindowName);
        }
 public DialogResult ShowMessageBoxAutoTurnOff(string msg, TimeSpan ts)
 {
     LkProcess.WaitClose(null, msgTitle, ts);
     return(MessageBox.Show(msg, msgTitle, messageBoxButtons, MessageBoxIcon.Question));
 }
示例#3
0
 public DialogResult ShowMessageBoxAutoTurnOff(string msg, string title, TimeSpan ts)
 {
     LkProcess.WaitClose(null, title, ts);
     return(MessageBox.Show(msg, title, messageBoxButtons, MessageBoxIcon.Asterisk));
 }