private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Settings.Load();
            if (Settings.Instance.HomeSteamID64.IsNullOrWhitespace() ||
                Settings.Instance.BackpackTFAPIKey.IsNullOrWhitespace() ||
                Settings.Instance.SteamAPIKey.IsNullOrWhitespace())
            {
                SettingsWindow sWindow = new SettingsWindow();
                bool? res = sWindow.ShowDialog();
                if (res != true)
                {
                    AutoExiting = true;
                    Close();
                    return; // not sure if Close() is fake async or not
                }

                Settings.Instance = sWindow.Instance;
                Settings.Instance.Save();
            }

            _initializerWindow = new InitWindow(false);
            bool? loaded = _initializerWindow.ShowDialog();

            if (loaded != true)
            {
                AutoExiting = true;
                Close();
                return;
            }

            ItemsView.PostLoad(this);
            BackpackView.PostLoad(this);
            ClassifiedsView.PostLoad(this);
            RangeView.PostLoad(this);
        }
 private void SettingsBtn_Click(object sender, RoutedEventArgs e)
 {
     SettingsWindow window = new SettingsWindow();
     bool? res = window.ShowDialog();
     if (res == true)
     {
         Settings.Instance = window.Instance;
         Settings.Instance.Save();
     }
 }