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 RefreshAllBtn_Click(object sender, RoutedEventArgs e)
        {
            _initializerWindow = new InitWindow(true);
            bool? loaded = _initializerWindow.ShowDialog();

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

            ItemsView.PostLoad(this);
            BackpackView.PostLoad(this);
            ClassifiedsView.PostLoad(this);
            RangeView.PostLoad(this);
        }
 public InitVersatileHandler(InitWindow window)
 {
     _window = window;
 }