예제 #1
0
        public static void ClearStaticValues()
        {
            _Accounts              = null;
            _Columns               = null;
            _TweetTasks            = null;
            _BackgroundLoadColumns = null;

#if !BACKGROUND_AGENT
            _FollowMessageShown   = null;
            _ProtectedAccounts    = null;
            _Filters              = null;
            _GlobalFilter         = null;
            _RetweetAsMentions    = null;
            _TweetsPerRequest     = null;
            _DefaultMuteTime      = null;
            _Drafts               = null;
            _ReadLaterCredentials = null;
            _Background           = null;
            _FirstInit            = null;
            _FontSize             = null;
            _ReadPositions        = null;
            _RecoverReadPositions = null;
            _EnabledGeolocation   = null;
            _TweetGeotagging      = null;
            _BufferProfiles       = null;
            _BufferAccessToken    = null;
            _TrialStart           = null;
            _CouponCodeValidated  = null;
            _ReloadOptions        = null;
            _TopicPlace           = null;
            _TopicPlaceId         = null;
#endif
        }
예제 #2
0
        public BackgroundsModel()
            : base("Backgrounds")
        {
            theme = new OcellTheme();
            backgroundNames = new List<string> { "Default", "None (transparent)", "Fabric", "Egg", "Tiles", "Tire", "Floral", "Map", "Diamond" };

            this.PropertyChanged += (sender, e) =>
            {
                if (e.PropertyName == "SelectedIndex")
                {
                    theme.Background = (BackgroundType)selectedIndex;
                    BackgroundBrush = theme.GetBrush();
                }
            };

            saveBackground = new DelegateCommand((param) =>
            {
                Config.Background = theme;
                MessageService.ShowMessage(Localization.Resources.BackgroundChangeOnRestart);
                GoBack();
            });
        }