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()} ==="); } }
public void UpdateProductInfo() { this.Text = $"{ProductInfo.PRODUCT_NAME} {ProductInfo.GetVersionString()}"; }