コード例 #1
0
        private static void LoadPersonalizationSettings(Personalizer personalizer)
        {
            if (_this != null)
            {
                personalizer.Load();
                int top = personalizer.GetIntValue(PersonalizationItemNames.FavoritesTop);
                if (top > 0) _this.Top = top;
                int left = personalizer.GetIntValue(PersonalizationItemNames.FavoritesLeft);
                if (left > 0) _this.Left = left;
                int width = personalizer.GetIntValue(PersonalizationItemNames.FavoritesWidth);
                if (width > 0) _this.Width = width;
                int height = personalizer.GetIntValue(PersonalizationItemNames.FavoritesHeight);
                if (height > 0) _this.Height = height;
                int split = personalizer.GetIntValue(PersonalizationItemNames.FavoritesSplit);
                if (split > 0) _this.favoritesSplitter.SplitterDistance = split;

                personalizer[PersonalizationItemNames.FavoritesIsShown] = "1";
                personalizer.Write();
            }
        }
コード例 #2
0
        private static void LoadPersonalizationSettings(Personalizer personalizer)
        {
            if (_this != null)
            {
                personalizer.Load();
                int top = personalizer.GetIntValue(PersonalizationItemNames.RemoteTop);
                if (top > 0) _this.Top = top;
                int left = personalizer.GetIntValue(PersonalizationItemNames.RemoteLeft);
                if (left > 0) _this.Left = left;
                int width = personalizer.GetIntValue(PersonalizationItemNames.RemoteWidth);
                if (width > 0) _this.Width = width;
                int height = personalizer.GetIntValue(PersonalizationItemNames.RemoteHeight);
                if (height > 0) _this.Height = height;

                personalizer[PersonalizationItemNames.RemoteIsShown] = "1";
                personalizer.Write();
            }
        }