mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
ConvertImages initialization handled within xaml.
This commit is contained in:
parent
e86c96d1ce
commit
da046d484f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user