Example #1
0
        /// <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);
            }
        }
Example #2
0
        private void RePlaceTempletTitle_Load(object sender, EventArgs e)
        {
            MakeTree();
            CreateGridSourceCol();

            m_SQLManger = new SQLManger(m_app);
            m_Logger    = new DrectSoftLog("批量修改模板页眉页脚错误日志");
            HideWaitDialog();
        }
Example #3
0
 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;
 }
Example #4
0
 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);
     }
 }
Example #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);
            }
        }
Example #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)
            {
            }
        }
Example #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mainApp"></param>
 /// <param name="log"></param>
 public PluginManager(Form mainApp, DrectSoftLog log)
 {
     _runner = new PluginRunner(mainApp);
     _log    = log;
 }