Пример #1
0
        /// <summary>
        ///     显示插件
        /// </summary>
        public void ShowPlugin()
        {
            try
            {
                if (null == aForm)
                {
                    aForm = new AnonymityForm(app, this); //初始化插件窗体
                }

                aForm.Show(app.DockPanel, DockState.Document); //显示在停靠栏中间
            }
            catch (Exception ex)
            {
                //app.WriteDebug(ex); //代理公布器调试窗体信息显示
                app.WriteExceptionLog(ex); //记录错误日志
                //app.WriteLog(ex.Message);
            }
        }
Пример #2
0
 /// <summary>
 ///     隐藏插件
 /// </summary>
 public void HidePlugin()
 {
     try
     {
         if (null != aForm)
         {
             if (Exist)
             {
                 aForm.Hide();
             }
             else
             {
                 aForm = null;
             }
         }
     }
     catch (Exception ex)
     {
         //app.WriteDebug(ex); //代理公布器调试窗体信息显示
         app.WriteExceptionLog(ex); //记录错误日志
         //app.WriteLog(ex.Message);
     }
 }