protected virtual void onAboutClick(object sender, EventArgs e) { var asm = Assembly.GetEntryAssembly(); BalloonTooltip.Show( FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).ProductName, null, $"Version: {asm.GetName().Version.ToString(2)}{Environment.NewLine}{this.aboutUrl} "); }
protected TrayIconBase(string title, string aboutUrl = null, bool dpiAwareness = true) { if (dpiAwareness) { User32.SetProcessDPIAware(); } this.Text = title; this.aboutUrl = aboutUrl; BalloonTooltip.InitActivation(); }