Files
Pf2eDataScrapper/Pf2e/Scrapper/WPF/StartForm/StartForm.xaml.cs
T

33 lines
880 B
C#

using System.Windows;
using Pf2e.Scrapper.Processors.Collection;
namespace Pf2e.Scrapper.WPF.StartForm;
internal partial class StartForm : Window
{
public ProcessorCollection Collection { get; }
public StartForm(ProcessorCollection collection)
{
Collection = collection;
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
ProcessorCollectionControl.Collection = Collection;
}
private void ViewerButton_Click(object sender, RoutedEventArgs e)
{
ApplicationStateChange?.Invoke(this, ApplicationStage.Viewer);
}
private void StartButton_Click(object sender, RoutedEventArgs e)
{
ApplicationStateChange?.Invoke(this, ApplicationStage.ImportProcess);
}
public event ImportApplication.ApplicationStateChangeDelegate? ApplicationStateChange;
}