public void SaveClick()
        {
            if (Sniper2Exe != null && Sniper2Exe.Contains(".exe"))
            {
                ColVisibility = Visibility.Visible;
            }
            if (Sniper2Exe == null || Sniper2Exe.Equals(""))
            {
                Sniper2Exe    = "";
                ColVisibility = Visibility.Collapsed;
            }
            GlobalSettings.ShowLimit                  = Math.Max(ShowLimit, 1);
            GlobalSettings.Port                       = CustomPort;
            GlobalSettings.PokeSnipers2Exe            = Sniper2Exe;
            GlobalSettings.ShowLimit                  = ShowLimit;
            GlobalSettings.RemoveAfter                = int.Parse(RemoveMinutes);
            GlobalSettings.VerifyOnSkiplagged         = UseSkiplagged;
            GlobalSettings.VerifiedOnly               = VerifiedOnly;
            GlobalSettings.UseFilter                  = UseFilter;
            GlobalSettings.MinimumIV                  = MinimumIV;
            GlobalSettings.UseGeoLocationBoundsFilter = UseGeoLocationBoundsFilter;
            GlobalSettings.GeoLocationBounds          = GeoLocationBounds;
            GlobalSettings.AppTheme                   = AppThemeText;
            GlobalSettings.Save();

            GlobalSettings.Output.RemoveListExtras();
        }
Пример #2
0
        public void SaveClick()
        {
            if (Sniper2Exe != null && Sniper2Exe.Contains(".exe"))
            {
                ColVisibility = Visibility.Visible;
            }
            if (Sniper2Exe == null || Sniper2Exe.Equals(""))
            {
                Sniper2Exe    = "";
                ColVisibility = Visibility.Collapsed;
            }
            GlobalSettings.ShowLimit       = Math.Max(ShowLimit, 1);
            GlobalSettings.Port            = CustomPort;
            GlobalSettings.PokeSnipers2Exe = Sniper2Exe;
            GlobalSettings.ShowLimit       = ShowLimit;
            GlobalSettings.RemoveAfter     = int.Parse(RemoveMinutes);
            GlobalSettings.Save();

            GlobalSettings.Output.RemoveListExtras();
        }