示例#1
0
        static void Main()
        {
            try
            {
                logger.LogInfo($"=== Begin {ProductInfo.PRODUCT_NAME} {ProductInfo.GetVersionString()} ===");

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
            catch (Exception ex)
            {
                logger.LogError(ex.ToString());
                MessageBox.Show(ex.Message, ProductInfo.PRODUCT_NAME, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                logger.LogInfo($"=== End {ProductInfo.PRODUCT_NAME} {ProductInfo.GetVersionString()} ===");
            }
        }
示例#2
0
 public void UpdateProductInfo()
 {
     this.Text = $"{ProductInfo.PRODUCT_NAME} {ProductInfo.GetVersionString()}";
 }