private void UpdateWindow() { GoodsLabel.Invoke(new Action(() => GoodsLabel.Content = Data.Goods)); PremiumLabel.Invoke(new Action(() => PremiumLabel.Content = Data.Premium)); SQLabel.Invoke(new Action(() => SQLabel.Content = Data.SecretQuestion)); GiftsLabel.Invoke(new Action(() => GiftsLabel.Content = Data.Gifts)); ErrorLabel.Invoke(new Action(() => ErrorLabel.Content = Data.Errors)); }