Inheritance: System.EventArgs
Esempio n. 1
0
        /// <summary>
        /// Temporary fix to keep selected object while editing current filter.
        /// </summary>
        private static void ContentLinkChanged(object sender, LinkChangedEventArgs e) {
            var group = (LinkGroupFilterable)sender;

            Type type;
            switch (group.DisplayName) {
                case "cars":
                    type = typeof(CarObject);
                    break;
                case "tracks":
                    type = typeof(TrackObject);
                    break;
                case "showrooms":
                    type = typeof(ShowroomObject);
                    break;
                default:
                    return;
            }

            var oldKey = @"Content_" + type.Name + @"_" + e.OldValue;
            var newKey = @"Content_" + type.Name + @"_" + e.NewValue;
            LimitedStorage.Move(LimitedSpace.SelectedEntry, oldKey, newKey);
        }
Esempio n. 2
0
        /// <summary>
        /// Temporary fix.
        /// </summary>
        private static void OnlineLinkChanged(object sender, LinkChangedEventArgs e) {
            var group = (LinkGroupFilterable)sender;
            var type = group.Source.GetQueryParamEnum<OnlineManagerType>(@"Mode");

            var oldKey = type + @"_" + typeof(ServerEntry).Name + @"_" + e.OldValue;
            var newKey = type + @"_" + typeof(ServerEntry).Name + @"_" + e.NewValue;
            LimitedStorage.Move(LimitedSpace.SelectedEntry, oldKey, newKey);
            LimitedStorage.Move(LimitedSpace.OnlineSorting, oldKey, newKey);
            LimitedStorage.Move(LimitedSpace.OnlineQuickFilter, oldKey, newKey);
        }