static internal void TrPosXClass_ShowScreenEvent(object sender, TrPosXClass.ScreenParamsOut Params, bool NeedAnswer) { //TrPosXClass.ShowScreenEvent -= new TrPosXClass.ShowScreenDelegate(TrPosXClass_ShowScreenEvent); if (TrPosXMessageForm != null) { if (TrPosXMessageForm.Visible) { object[] _Params = new object[1]; _Params[0] = Params; TrPosXMessageForm.BeginInvoke(new ShowWindowDelegate(ShowWindow), _Params); } } }
static private void ShowWindow(TrPosXClass.ScreenParamsOut Params) { /* * textBox1.Text += "Main_ShowScreenEvent " + Environment.NewLine; * textBox1.Text += Params.pTitle + Environment.NewLine; * */ TrPosXMessageForm.AddMess(Params.pTitle + Environment.NewLine); TrPosXMessageForm.UpdateMess(""); for (int i = 0; i < 10; i++) { try { if (Params.pStr[i] != "") { TrPosXMessageForm.AddMess(Params.pStr[i] + Environment.NewLine); } } catch { } } }