예제 #1
0
        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} ");
        }
예제 #2
0
        protected TrayIconBase(string title, string aboutUrl = null, bool dpiAwareness = true)
        {
            if (dpiAwareness)
            {
                User32.SetProcessDPIAware();
            }

            this.Text     = title;
            this.aboutUrl = aboutUrl;
            BalloonTooltip.InitActivation();
        }