コード例 #1
0
ファイル: FormLock.cs プロジェクト: xuanximoming/key
        /// <summary>
        /// Init
        /// </summary>
        private void Init()
        {
            try
            {
                //// 隐藏任务栏
                //IntPtr trayHwnd = FindWindow("Shell_TrayWnd", null);
                //ShowWindow(trayHwnd, 0);


                //// 禁用windows热键
                //intLLKey = SetWindowsHookEx(13, DisableHotkeys, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]).ToInt32(), 0);


                this.FormBorderStyle = FormBorderStyle.FixedDialog;//no title
                m_SqlHelper          = DataAccessFactory.DefaultDataAccess;

                m_Logger      = new DrectSoftLog("系统锁屏模块跟踪");
                m_CurrentUser = FormMain.Instance.User;
                m_Account     = new Account();

                InitControls();

                // 禁用任务管理器
                //RegistryKey regkey = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
                //regkey.SetValue("DisableTaskMgr", 1, RegistryValueKind.DWord);
                //regkey.Close();
            }
            catch (Exception ex)
            {
                m_Logger.Error(ex);
            }
        }
コード例 #2
0
        private void RePlaceTempletTitle_Load(object sender, EventArgs e)
        {
            MakeTree();
            CreateGridSourceCol();

            m_SQLManger = new SQLManger(m_app);
            m_Logger    = new DrectSoftLog("批量修改模板页眉页脚错误日志");
            HideWaitDialog();
        }
コード例 #3
0
ファイル: FormLogin.cs プロジェクト: xuanximoming/key
 public FormLogin()
 {
     this.InitializeComponent();
     this.InitializeUI();
     this.m_Acnt          = new Account();
     this.m_MasterAcnt    = new Account();
     this.m_Log           = FormMain.Instance.Logger;
     base.TransparencyKey = this.BackColor;
     base.TopMost         = true;
 }
コード例 #4
0
ファイル: FormLock.cs プロジェクト: xuanximoming/key
 private void Init()
 {
     try
     {
         base.FormBorderStyle = FormBorderStyle.None;
         this.m_SqlHelper     = DataAccessFactory.DefaultDataAccess;
         this.m_Logger        = new DrectSoftLog("系统锁屏模块跟踪");
         this.m_CurrentUser   = FormMain.Instance.User;
         this.m_Account       = new Account();
         this.InitControls();
     }
     catch (Exception message)
     {
         this.m_Logger.Error(message);
     }
 }
コード例 #5
0
        private void RePlaceTempletTitle_Load(object sender, EventArgs e)
        {
            try
            {
                InitHeader();
                InitFoot();
                MakeTree();
                CreateGridSourceCol();

                m_SQLManger = new SQLManger(m_app);
                m_Logger    = new DrectSoftLog("批量修改模板页眉页脚错误日志");
                HideWaitDialog();
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex.Message);
            }
        }
コード例 #6
0
        /// <summary>
        /// 构造
        /// </summary>
        public FormLogin()
        {
            InitializeComponent();

            InitializeUI();
            //this.textBoxUserID.Leave += new EventHandler(textBoxUserID_Leave);
            //this.textBoxPassword.KeyPress += new KeyPressEventHandler(textBoxPassword_KeyPress);
            m_Acnt               = new Account();
            m_MasterAcnt         = new Account();
            m_Log                = FormMain.Instance.Logger;
            this.TransparencyKey = this.BackColor;
            this.TopMost         = true;

            //加载界面图片 xll
            try
            {
                //  panelForm.ContentImage = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "\\Icon\\LoginMain.jpg");
            }
            catch (Exception)
            {
            }
        }
コード例 #7
0
ファイル: PluginManager.cs プロジェクト: xuanximoming/key
 /// <summary>
 ///
 /// </summary>
 /// <param name="mainApp"></param>
 /// <param name="log"></param>
 public PluginManager(Form mainApp, DrectSoftLog log)
 {
     _runner = new PluginRunner(mainApp);
     _log    = log;
 }