Exemplo n.º 1
0
 private bool IsInitStart()
 {
     return(ConfigHelper.GetAppSettingsString("ISINITSTARTWORK").ToString().Trim() == "ON");
 }
Exemplo n.º 2
0
        protected override void WndProc(ref Message m)
        {
            const int WM_HOTKEY = 0x0312;

            //按快捷键
            switch (m.Msg)
            {
            case WM_HOTKEY:
                switch (m.WParam.ToInt32())
                {
                case 100:
                    this.Hide();
                    break;

                case 101:
                    this.Show();
                    break;

                case 102:
                    var timestart = ConfigHelper.GetAppSettingsString("LASTSTARTTIME");
                    var timerange = ConfigHelper.GetAppSettingsString("SYSTEMWORKRANGETIME").Split(',');
                    MessageBox.Show("速库消息推送后台\r\n当前版本:V2.0.0.0\r\nV1.0创建时间:2015.8.20 by gd \r\nV2.0更新时间:2015.9.15 by zl 协助修改 by gd\r\n\r\n系统最近一次启动时间:" + timestart + " \r\n系统工作时间范围:每日" + timerange[0] + "点 - " + timerange[1] + "点\r\n快捷键:win+A , win+Z , win+X 启动关闭所有任务:ctrl+F1\r\n\r\n短信发送条数总计:" + ConfigHelper.GetAppSettingsString("SMSSendCount") + " 条------------------------------------------------------------------\r\n如有疑问↓↓\r\nweibo:@大白2013\r\nmail:[email protected]", "提示");
                    break;

                case 103:
                    if (timer_goldbookRemid.Tag.ToString() == "0")
                    {
                        GoldBookStart();
                        OrderTimeOutStart();
                        NotLoginUserStart();
                        JushOrderTimeOutStart();
                        JushNotLoginStart();
                        JushGoldBookStart();
                        JushAddGoldBookStart();
                        timingJushStart();
                    }
                    else
                    {
                        GoldBookEnd();
                        OrderTimeOutEnd();
                        NotLoginUserEnd();
                        JushOrderTimeOutEnd();
                        JushNotLoginEnd();
                        JushGoldBookEnd();
                        JushAddGoldBookEnd();
                        timingJushEnd();
                    }
                    break;
                }
                break;
            }
            base.WndProc(ref m);
        }