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); } }
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); } }