ConvertImages initialization handled within xaml.

This commit is contained in:
morkt 2014-08-22 17:19:01 +04:00
parent e86c96d1ce
commit da046d484f

View File

@ -1,9 +1,4 @@
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using GameRes;
using GARbro.GUI.Properties;
using System.Windows;
namespace GARbro.GUI
{
@ -15,22 +10,6 @@ namespace GARbro.GUI
public ConvertImages ()
{
InitializeComponent ();
InitImageFormats (this.ImageConversionFormat);
}
void InitImageFormats (ComboBox image_format)
{
/*
var formats = FormatCatalog.Instance.ImageFormats;
var models = formats.Select (f => new ImageFormatModel (f)).ToList();
var selected_format = Settings.Default.appLastImageFormat;
var selected = models.FirstOrDefault (f => f.Tag.Equals (selected_format));
image_format.ItemsSource = models;
if (null != selected)
image_format.SelectedItem = selected;
else if (models.Any())
image_format.SelectedIndex = 0;
*/
}
private void ConvertButton_Click (object sender, RoutedEventArgs e)