private void Button_Click(object sender, RoutedEventArgs e) { if (cropToolControl != null) { PART_ImageEdited.Source = ImageTools.ConvertBitmapToBitmapImage(cropToolControl.GetBitmapCrop()); if ((string)PART_ComboBoxMedia.SelectedItem == resources.GetString("LOCGameIconTitle")) { PART_BtSetIcon.IsEnabled = false; } else { PART_BtSetIcon.IsEnabled = !((string)PART_ComboBoxMedia.SelectedItem).IsNullOrEmpty(); } } }