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