Ejemplo n.º 1
0
        public static void ThreadedCheckForUserTips(System.Object AControl)
        {
            /*
             * Check for specific TipStatus: '!' means 'show the Tip, but then set it'
             *
             * This is done to pick up Tips only for the Users that they were specifically
             * set for, and not for users where the TipStatus would be un-set ('-')!
             * This is helfpful eg. for Patch Notices - they should be shown to all current
             * users (the patch program would set the TipStatus to '!' for all current users),
             * but not for users that get created after the Patch was applied (they don't
             * need to know what was new/has changed in a certain Patch that was applied in
             * the past!)
             */
            if (TUserTips.TMPartner.CheckTipStatus(TMPartnerTips.mpatNewTabCountersNotes) == '!')
            {
                // Set Tip Status so it doesn't get picked up again!
                TUserTips.TMPartner.SetTipViewed(TMPartnerTips.mpatNewTabCountersNotes);

                // MessageBox.Show('TUC_PartnerNotes.CheckForUserTips: showing BalloonTip...');
                PrepareBalloonTip();
                UBalloonTip.ShowBalloonTipNewFunction(
                    "Petra Version 2.2.7 Change: Indicator in Notes Tab Header",
                    "An indicator has been added to the tab header that shows whether Notes are entered for the Partner," + "\r\n" +
                    "or not: (0) means that no Notes are entered, (" + (char)8730 + ") means that Notes are entered." + "\r\n" +
                    "The Addresses tab and Subscriptions tab also have changes to the counters in the tab headers.",
                    (Control)AControl);

                // 8730 = 'square root symbol' in Verdana
                UBalloonTip = null;
            }
        }