From f572372ed20bbca88c37d20aa7814ff48c051c4b Mon Sep 17 00:00:00 2001 From: mashed-potatoes <37037851+mashed-potatoes@users.noreply.github.com> Date: Sun, 28 Jun 2020 21:42:32 +0500 Subject: [PATCH] Make OnFormSubmit not static --- PotatoNV-next/Controls/NVForm.xaml.cs | 2 +- PotatoNV-next/Core.cs | 4 ++++ PotatoNV-next/MainWindow.xaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PotatoNV-next/Controls/NVForm.xaml.cs b/PotatoNV-next/Controls/NVForm.xaml.cs index 5d5b5c1..deda44b 100644 --- a/PotatoNV-next/Controls/NVForm.xaml.cs +++ b/PotatoNV-next/Controls/NVForm.xaml.cs @@ -25,7 +25,7 @@ namespace PotatoNV_next.Controls private Bootloader[] bootloaders; public delegate void FormHandler(FormEventArgs formEventArgs); - public static event FormHandler OnFormSubmit; + public event FormHandler OnFormSubmit; private bool IsSelectedDeviceInFastbootMode; diff --git a/PotatoNV-next/Core.cs b/PotatoNV-next/Core.cs index c905b84..2088f14 100644 --- a/PotatoNV-next/Core.cs +++ b/PotatoNV-next/Core.cs @@ -8,5 +8,9 @@ namespace PotatoNV_next { class Core { + public static void StartProcess(Controls.NVForm.FormEventArgs formEventArgs) + { + + } } } diff --git a/PotatoNV-next/MainWindow.xaml b/PotatoNV-next/MainWindow.xaml index 15e6e50..4d29487 100644 --- a/PotatoNV-next/MainWindow.xaml +++ b/PotatoNV-next/MainWindow.xaml @@ -30,7 +30,7 @@ - +