Exemple #1
0
        private async void UpdateCheckTimer_Tick(object sender, EventArgs e)
        {
            try
            {
                if (await ETC.CheckAppVersion())
                {
                    StatusStrip_AppVerLabel.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
                }
                else
                {
                    StatusStrip_AppVerLabel.DisplayStyle = ToolStripItemDisplayStyle.Text;
                }

                if (await ETC.CheckDBVersion())
                {
                    StatusStrip_DBVerLabel.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
                }
                else
                {
                    StatusStrip_DBVerLabel.DisplayStyle = ToolStripItemDisplayStyle.Text;
                }

                if (await ETC.CheckOldGFDVersion())
                {
                    StatusStrip_OldGFDVerLabel.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
                }
                else
                {
                    StatusStrip_OldGFDVerLabel.DisplayStyle = ToolStripItemDisplayStyle.Text;
                }

                StatusStrip_DBVerLabel.Text     = $"DB Ver : {ETC.dbVer}";
                StatusStrip_OldGFDVerLabel.Text = $"GFDv1 Ver : {ETC.oldGFDVer}";
            }
            catch (Exception ex)
            {
                ETC.LogError(ex);
            }
        }