Make OnFormSubmit not static

This commit is contained in:
mashed-potatoes 2020-06-28 21:42:32 +05:00
parent cb6292a977
commit f572372ed2
3 changed files with 6 additions and 2 deletions

View file

@ -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;

View file

@ -8,5 +8,9 @@ namespace PotatoNV_next
{
class Core
{
public static void StartProcess(Controls.NVForm.FormEventArgs formEventArgs)
{
}
}
}

View file

@ -30,7 +30,7 @@
<UniformGrid Columns="2">
<TabControl Margin="3">
<TabItem Header="NVME Update">
<controls:NVForm />
<controls:NVForm x:Name="nvFrom" />
</TabItem>
<TabItem Header="About program">
<controls:AboutTab />