Exemple #1
0
        public static bool DeskBandRegistrationChanged()
        {
            using (var trayDeskBand = new TrayDeskband())
            {
                if (trayDeskBand.Instance.DeskBandRegistrationChanged() == S_OK)
                {
                    return(true);
                }

                return(false);
            }
        }
Exemple #2
0
        public static bool IsDeskBandShown(Guid clsid)
        {
            using (var trayDeskBand = new TrayDeskband())
            {
                if (trayDeskBand.Instance.IsDeskBandShown(ref clsid) == S_OK)
                {
                    return(true);
                }

                return(false);
            }
        }
Exemple #3
0
        public static bool ShowDeskBand(Guid clsid)
        {
            using (var trayDeskBand = new TrayDeskband())
            {
                if (trayDeskBand.Instance.IsDeskBandShown(ref clsid) == S_FALSE)
                {
                    bool result = false;
                    trayDeskBand.Instance.DeskBandRegistrationChanged();
                    result = trayDeskBand.Instance.ShowDeskBand(ref clsid) == S_OK;
                    trayDeskBand.Instance.DeskBandRegistrationChanged();

                    return(result);
                }
            }

            return(false);
        }