2019-10-07 12:02:31 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2019-10-07 12:13:53 +00:00
|
|
|
|
using System.ComponentModel;
|
2019-10-07 12:02:31 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for ModlistPropertiesWindow.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class ModlistPropertiesWindow : Window
|
|
|
|
|
{
|
|
|
|
|
public ModlistPropertiesWindow()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2019-10-07 12:40:19 +00:00
|
|
|
|
var bannerImage = UIUtils.BitmapImageFromResource("Wabbajack.banner.png");
|
|
|
|
|
SplashScreenProperty.Source = bannerImage;
|
2019-10-07 12:02:31 +00:00
|
|
|
|
}
|
2019-10-07 12:13:53 +00:00
|
|
|
|
|
|
|
|
|
private void Window_Closing(object sender, CancelEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
//Hide();
|
|
|
|
|
}
|
2019-10-07 12:40:19 +00:00
|
|
|
|
|
|
|
|
|
private void SetSplashScreen_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
var file = UIUtils.OpenFileDialog("Banner image|*.png");
|
|
|
|
|
if(file != null)
|
|
|
|
|
{
|
|
|
|
|
SplashScreenProperty.Source = new BitmapImage(new Uri(file));
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-10-07 12:02:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|