2020-02-02 15:41:48 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Runtime.InteropServices.WindowsRuntime;
|
|
|
|
|
|
using UWP_Visual_Asset_Generator.ViewModels;
|
|
|
|
|
|
using Windows.Foundation;
|
|
|
|
|
|
using Windows.Foundation.Collections;
|
|
|
|
|
|
using Windows.UI.Xaml;
|
|
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
using Windows.UI.Xaml.Controls.Primitives;
|
|
|
|
|
|
using Windows.UI.Xaml.Data;
|
|
|
|
|
|
using Windows.UI.Xaml.Input;
|
|
|
|
|
|
using Windows.UI.Xaml.Media;
|
|
|
|
|
|
using Windows.UI.Xaml.Navigation;
|
|
|
|
|
|
|
|
|
|
|
|
// The Content Dialog item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
|
|
|
|
|
|
|
|
|
|
|
namespace UWP_Visual_Asset_Generator.UserControls
|
|
|
|
|
|
{
|
|
|
|
|
|
public sealed partial class BackgroundColorUserControl : ContentDialog
|
|
|
|
|
|
{
|
|
|
|
|
|
public MainViewModel mainViewModel => App.mainViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
public BackgroundColorUserControl()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2020-07-21 08:26:53 +10:00
|
|
|
|
private void okButton_Click(object sender, RoutedEventArgs e)
|
2020-02-02 15:41:48 -05:00
|
|
|
|
{
|
2020-07-21 08:26:53 +10:00
|
|
|
|
mainViewModel.AssetTypes.ApplyLogo();
|
2020-02-02 15:41:48 -05:00
|
|
|
|
mainViewModel.ShowBackgroundColorSelector = false;
|
|
|
|
|
|
|
|
|
|
|
|
Hide();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|