Ejemplo n.º 1
0
 public override void ClearMessage()
 {
     Plugin.Application.IAppPrivilegesRef pAppFormRef = m_Hook as Plugin.Application.IAppPrivilegesRef;
     if (pAppFormRef != null)
     {
         pAppFormRef.OperatorTips = string.Empty;
     }
 }
Ejemplo n.º 2
0
 public override void OnCreate(Plugin.Application.IApplicationRef hook)
 {
     if (hook == null)
     {
         return;
     }
     m_Hook = hook as Plugin.Application.IAppPrivilegesRef;
 }
Ejemplo n.º 3
0
 //在退出系统前如正在处理数据应提示
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     Plugin.Application.IAppPrivilegesRef pApp = ModFrameData.v_AppPrivileges as Plugin.Application.IAppPrivilegesRef;
     if (pApp == null)
     {
         return;
     }
     if (pApp.CurrentThread != null)
     {
         pApp.CurrentThread.Suspend();
         if (SysCommon.Error.ErrorHandle.ShowFrmInformation("确定", "取消", "当前任务正在进行,是否终止退出?") == true)
         {
             pApp.CurrentThread.Resume();
             pApp.CurrentThread.Abort();
         }
         else
         {
             pApp.CurrentThread.Resume();
             e.Cancel = true;
         }
     }
 }