Fixed compile errors in Artemis.UI

This commit is contained in:
Robert committed 2023-03-30 23:13:39 +02:00
1 parent 81e83e59f6
commit d171b947b7
160 files changed
+407 -521

No files matched your search

@@ -11,10 +11,8 @@ using ReactiveUI;
namespace Artemis.UI.Screens.StartupWizard;
public class StartupWizardView : ReactiveAppWindow<StartupWizardViewModel>
public partial class StartupWizardView : ReactiveAppWindow<StartupWizardViewModel>
{
private readonly Frame _frame;
public StartupWizardView()
{
InitializeComponent();
@@ -22,8 +20,6 @@ public class StartupWizardView : ReactiveAppWindow<StartupWizardViewModel>
this.AttachDevTools();
#endif
_frame = this.Get<Frame>("Frame");
this.WhenActivated(d => ViewModel.WhenAnyValue(vm => vm.CurrentStep).Subscribe(ApplyCurrentStep).DisposeWith(d));
}
@@ -35,14 +31,14 @@ public class StartupWizardView : ReactiveAppWindow<StartupWizardViewModel>
private void ApplyCurrentStep(int step)
{
if (step == 1)
_frame.NavigateToType(typeof(WelcomeStep), null, new FrameNavigationOptions());
Frame.NavigateToType(typeof(WelcomeStep), null, new FrameNavigationOptions());
else if (step == 2)
_frame.NavigateToType(typeof(DevicesStep), null, new FrameNavigationOptions());
Frame.NavigateToType(typeof(DevicesStep), null, new FrameNavigationOptions());
else if (step == 3)
_frame.NavigateToType(typeof(LayoutStep), null, new FrameNavigationOptions());
Frame.NavigateToType(typeof(LayoutStep), null, new FrameNavigationOptions());
else if (step == 4)
_frame.NavigateToType(typeof(SettingsStep), null, new FrameNavigationOptions());
Frame.NavigateToType(typeof(SettingsStep), null, new FrameNavigationOptions());
else if (step == 5)
_frame.NavigateToType(typeof(FinishStep), null, new FrameNavigationOptions());
Frame.NavigateToType(typeof(FinishStep), null, new FrameNavigationOptions());
}
}
@@ -3,7 +3,7 @@ using Avalonia.Markup.Xaml;
namespace Artemis.UI.Screens.StartupWizard.Steps;
public class DevicesStep : UserControl
public partial class DevicesStep : UserControl
{
public DevicesStep()
{
@@ -3,7 +3,7 @@ using Avalonia.Markup.Xaml;
namespace Artemis.UI.Screens.StartupWizard.Steps;
public class FinishStep : UserControl
public partial class FinishStep : UserControl
{
public FinishStep()
{
@@ -3,7 +3,7 @@ using Avalonia.Markup.Xaml;
namespace Artemis.UI.Screens.StartupWizard.Steps;
public class LayoutStep : UserControl
public partial class LayoutStep : UserControl
{
public LayoutStep()
{
@@ -3,7 +3,7 @@ using Avalonia.Markup.Xaml;
namespace Artemis.UI.Screens.StartupWizard.Steps;
public class SettingsStep : UserControl
public partial class SettingsStep : UserControl
{
public SettingsStep()
{
@@ -3,7 +3,7 @@ using Avalonia.Markup.Xaml;
namespace Artemis.UI.Screens.StartupWizard.Steps;
public class WelcomeStep : UserControl
public partial class WelcomeStep : UserControl
{
public WelcomeStep()
{