public UpgradeIconEditor_Editor() { var mainDialog = UpgradeIconEditor.Instance; if (mainDialog != null) { Car = mainDialog.Car; _key = @"__upgradeiconeditor_" + Car.Id; } DataContext = this; InitializeComponent(); NewIconLabel.Text = _key != null?ValuesStorage.Get(_key, UpgradeIconEditor.TryToGuessLabel(Car?.DisplayName)) ?? "S1" : @"?"; NewIconLabel_UpdateFontSize(); FocusLabel(); }