mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 15:48:16 +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.Windows;
|
||||||
using System.Linq;
|
|
||||||
using System.Windows;
|
|
||||||
using System.Windows.Controls;
|
|
||||||
using GameRes;
|
|
||||||
using GARbro.GUI.Properties;
|
|
||||||
|
|
||||||
namespace GARbro.GUI
|
namespace GARbro.GUI
|
||||||
{
|
{
|
||||||
@ -15,22 +10,6 @@ namespace GARbro.GUI
|
|||||||
public ConvertImages ()
|
public ConvertImages ()
|
||||||
{
|
{
|
||||||
InitializeComponent ();
|
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)
|
private void ConvertButton_Click (object sender, RoutedEventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user