示例#1
0
        private void StopSMon()
        {
            try
            {
                StopSMonObject(false);

                if (mIsScrWinOpened)
                {
                    int intReturn;
                    intReturn = ScreenMPInterop.VLSMonStop();
                    CurrentApp.WriteLog("StoSMon", string.Format("MonStopReturn:{0}", intReturn));
                }
            }
            catch (Exception ex)
            {
                ShowException(ex.Message);
            }
        }
示例#2
0
        public void CloseSMonPanel()
        {
            try
            {
                StopSMonObject(true);

                if (mIsScrWinOpened)
                {
                    int intReturn;
                    intReturn = ScreenMPInterop.VLSMonStop();
                    CurrentApp.WriteLog("StoSMon", string.Format("MonStopReturn:{0}", intReturn));
                }

                RemoveMonObject();
                if (PageParent != null)
                {
                    PageParent.ClosePanel(2);
                }
            }
            catch (Exception ex)
            {
                ShowException(ex.Message);
            }
        }