Exemplo n.º 1
0
        void updateExpButton()
        {
            int expCount = SqliteDataService.GetExpUploadCount();

            Invoke(new Action(() =>
            {
                string str       = string.Format("异常箱明细({0})", expCount);
                btnErrorBox.Text = str;

                if (expCount > 0)
                {
                    btnErrorBox.DM_NormalColor = Color.Red;
                }
                else
                {
                    btnErrorBox.DM_NormalColor = Color.WhiteSmoke;
                }
            }));
        }