diff --git a/osrs-toolbox/Models/APITestModel.cs b/osrs-toolbox/Models/APITestModel.cs
new file mode 100644
index 0000000..4e70b0c
--- /dev/null
+++ b/osrs-toolbox/Models/APITestModel.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Input;
+
+namespace osrs_toolbox
+{
+ public abstract class APITestModel : ModelBase
+ {
+ private string _testOutput;
+ private ICommand _testCall;
+
+ public string TestOutput
+ {
+ get { return _testOutput; }
+ set { SetProperty(ref _testOutput, value, nameof(TestOutput)); }
+ }
+ public ICommand TestCall
+ {
+ get { return _testCall; }
+ set { SetProperty(ref _testCall, value, nameof(TestCall)); }
+ }
+ }
+}
diff --git a/osrs-toolbox/Models/HomePageModel.cs b/osrs-toolbox/Models/HomePageModel.cs
index d10170e..4262926 100644
--- a/osrs-toolbox/Models/HomePageModel.cs
+++ b/osrs-toolbox/Models/HomePageModel.cs
@@ -15,6 +15,7 @@ namespace osrs_toolbox
private ICommand _openDropChanceCalculator;
private ICommand _openCombatLevelCalculator;
private ICommand _openShopBuyoutCalculator;
+ private ICommand _openAPITest;
public ICommand OpenCompetitionOverlaySettings
{
@@ -38,5 +39,10 @@ namespace osrs_toolbox
get { return _openShopBuyoutCalculator; }
set { SetProperty(ref _openShopBuyoutCalculator, value, nameof(OpenShopBuyoutCalculator)); }
}
+ public ICommand OpenAPITest
+ {
+ get { return _openAPITest; }
+ set { SetProperty(ref _openAPITest, value, nameof(OpenAPITest)); }
+ }
}
}
diff --git a/osrs-toolbox/ViewModels/APITestViewModel.cs b/osrs-toolbox/ViewModels/APITestViewModel.cs
new file mode 100644
index 0000000..d2adbb5
--- /dev/null
+++ b/osrs-toolbox/ViewModels/APITestViewModel.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace osrs_toolbox
+{
+ public class APITestViewModel : APITestModel
+ {
+ public APITestViewModel()
+ {
+ TestOutput = string.Empty;
+ TestCall = new RelayCommand(DoTest);
+ }
+
+ private void DoTest(object obj)
+ {
+
+ }
+ }
+}
diff --git a/osrs-toolbox/ViewModels/HomePageViewModel.cs b/osrs-toolbox/ViewModels/HomePageViewModel.cs
index bacebc9..6cb544c 100644
--- a/osrs-toolbox/ViewModels/HomePageViewModel.cs
+++ b/osrs-toolbox/ViewModels/HomePageViewModel.cs
@@ -26,6 +26,7 @@ namespace osrs_toolbox
OpenDropChanceCalculator = new RelayCommand(DoOpenDropChanceCalculator);
OpenCombatLevelCalculator = new RelayCommand(DoOpenCombatLevelCalculator);
OpenShopBuyoutCalculator = new RelayCommand(DoOpenShopBuyoutCalculator);
+ OpenAPITest = new RelayCommand(DoOpenAPITest);
}
private void DoOpenCompetitionOverlaySettings(object obj)
@@ -83,5 +84,19 @@ namespace osrs_toolbox
sbv.Show();
}
}
+
+ private void DoOpenAPITest(object obj)
+ {
+ if (APITestView.Current != null)
+ {
+ APITestView.Current.Close();
+ APITestView.Current = null;
+ }
+ else
+ {
+ APITestView atv = new APITestView();
+ atv.Show();
+ }
+ }
}
}
diff --git a/osrs-toolbox/Views/APITestView.xaml b/osrs-toolbox/Views/APITestView.xaml
new file mode 100644
index 0000000..369dc15
--- /dev/null
+++ b/osrs-toolbox/Views/APITestView.xaml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/osrs-toolbox/Views/APITestView.xaml.cs b/osrs-toolbox/Views/APITestView.xaml.cs
new file mode 100644
index 0000000..e7ceb52
--- /dev/null
+++ b/osrs-toolbox/Views/APITestView.xaml.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace osrs_toolbox
+{
+ ///
+ /// Interaction logic for APITestView.xaml
+ ///
+ public partial class APITestView : Window
+ {
+ public static APITestView Current;
+ public APITestView()
+ {
+ InitializeComponent();
+ Current = this;
+ }
+
+ private void Window_Closed(object sender, EventArgs e)
+ {
+ Current = null;
+ }
+ }
+}
diff --git a/osrs-toolbox/Views/HomePageView.xaml b/osrs-toolbox/Views/HomePageView.xaml
index 6e77196..22f16d1 100644
--- a/osrs-toolbox/Views/HomePageView.xaml
+++ b/osrs-toolbox/Views/HomePageView.xaml
@@ -18,5 +18,6 @@
+