Exemple #1
0
        public RegressBuyForm()
        {
            InitializeComponent();

            LUtils.InitItemListView(mainListView_);
            LUtils.InitItemListView(subListView_);
        }
Exemple #2
0
        public MainForm()
        {
            Me = this;
            InitializeComponent();

            //   TheWebSocketServer.Start();

            var skinName = Utils.GetSysInfo(DB.Global(), "SkinName", "");

            if (skinName != "")
            {
                skinEngine_ = new Sunisoft.IrisSkin.SkinEngine();
                MainForm.Me.skinEngine_.SkinFile = Path.Combine(Dist.binPath_, "Skins", skinName);
            }

            msgText.Text = "";
            toolStripStatusLabel1_.Text = DataStore.DataMode ? "Partial" : "Full";
            toolStripStatusLabel2_.Text = "";

            App.host_ = this;
            LUtils.InitItemListView(selectListView_);

            autoSelectModeToolStripMenuItem.Checked = true;
            startupTime_ = DateTime.Now;
            timer_.Start();
            SelectTask.Init();
            int nSendCount = DB.Global().ExecuteScalar <int>("Select Count(*) From already_send_sms");
            int nAllCount  = Utils.ToType <int>(Utils.GetSysInfo(DB.Global(), "Sms.Count", "0"));

            if (nSendCount > nAllCount - 100)
            {
                Sms.SendMsgIfTodayNotSend("No sms quickly!");
            }
        }