diff --git a/.vs/UWPHook/v14/.suo b/.vs/UWPHook/v14/.suo
index 8215259..2164a2c 100644
Binary files a/.vs/UWPHook/v14/.suo and b/.vs/UWPHook/v14/.suo differ
diff --git a/UWPHook/GameControl.xaml b/UWPHook/GameControl.xaml
deleted file mode 100644
index 5fdbc16..0000000
--- a/UWPHook/GameControl.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/UWPHook/GameControl.xaml.cs b/UWPHook/GameControl.xaml.cs
deleted file mode 100644
index b256dbb..0000000
--- a/UWPHook/GameControl.xaml.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-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.Navigation;
-using System.Windows.Shapes;
-
-namespace UWPHook
-{
- ///
- /// Interaction logic for Game.xaml
- ///
- public partial class Game : UserControl
- {
- public Game()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/UWPHook/GameModel.cs b/UWPHook/GameModel.cs
index 4ef9a01..8bf04f6 100644
--- a/UWPHook/GameModel.cs
+++ b/UWPHook/GameModel.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
+using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
@@ -9,9 +10,61 @@ using System.Windows.Data;
namespace UWPHook
{
- class GameModel
+ public class GameModel
{
+ public GameModel()
+ {
+ games = new ObservableCollection();
+ }
+
+ private ObservableCollection _games;
+
+ public ObservableCollection games
+ {
+ get { return _games; }
+ set { _games = value; }
+ }
+
+
+
+ public void Add(Game game)
+ {
+ this.games.Add(game);
+ }
+
public string game_alias { get; set; }
public string game_path { get; set; }
+
+ }
+
+ public class Game:INotifyPropertyChanged
+ {
+ private string _game_alias;
+
+ public string game_alias
+ {
+ get { return _game_alias; }
+ set { _game_alias = value; }
+ }
+
+ private string _game_path;
+
+ public string game_path
+ {
+ get { return _game_path; }
+ set { _game_path = value; }
+ }
+
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ private void NotifyPropertyChanged(string Obj)
+ {
+ if (PropertyChanged != null)
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(Obj));
+ }
+ }
+
}
}
diff --git a/UWPHook/MainWindow.xaml b/UWPHook/MainWindow.xaml
index c33d904..c0f618f 100644
--- a/UWPHook/MainWindow.xaml
+++ b/UWPHook/MainWindow.xaml
@@ -20,7 +20,6 @@
-
diff --git a/UWPHook/MainWindow.xaml.cs b/UWPHook/MainWindow.xaml.cs
index df82071..370e4c4 100644
--- a/UWPHook/MainWindow.xaml.cs
+++ b/UWPHook/MainWindow.xaml.cs
@@ -20,8 +20,7 @@ namespace UWPHook
///
public partial class MainWindow : Window
{
- List games;
-
+ GameModel games;
public MainWindow()
{
InitializeComponent();
@@ -30,23 +29,24 @@ namespace UWPHook
{
}
- games = new List();
- for (int i = 0; i < 10; i++)
- {
- games.Add(new GameModel { game_alias = "sajufhsaduifhuisdsdgbuigduisaguidsguisaguiasguidasg", game_path = "sajufhsaduifhuisdsdgbuigduisaguidsguisaguiasguidasgx" });
- }
+ // games = new List();
+ // for (int i = 0; i < 10; i++)
+ // {
+ // games.Add(new GameModel { game_alias = "sajufhsaduifhuisdsdgbuigduisaguidsguisaguiasguidasg", game_path = "sajufhsaduifhuisdsdgbuigduisaguidsguisaguiasguidasgx" });
+ // }
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
- listView.ItemsSource = games;
+ games = new GameModel();
+ listView.ItemsSource = games.games;
}
private void addButton_Click(object sender, RoutedEventArgs e)
{
- games.Add(new GameModel { game_alias = alias_textBox.Text, game_path = path_textBox.Text });
+ games.Add(new Game{ game_alias = alias_textBox.Text, game_path = path_textBox.Text });
}
}
}
diff --git a/UWPHook/UWPHook.csproj b/UWPHook/UWPHook.csproj
index 13c788f..f71819e 100644
--- a/UWPHook/UWPHook.csproj
+++ b/UWPHook/UWPHook.csproj
@@ -55,10 +55,6 @@
MSBuild:Compile
Designer
-
- Designer
- MSBuild:Compile
-
MSBuild:Compile
Designer
@@ -67,9 +63,6 @@
App.xaml
Code
-
- GameControl.xaml
-
MainWindow.xaml
diff --git a/UWPHook/bin/Debug/UWPHook.exe b/UWPHook/bin/Debug/UWPHook.exe
index abf7a99..980df01 100644
Binary files a/UWPHook/bin/Debug/UWPHook.exe and b/UWPHook/bin/Debug/UWPHook.exe differ
diff --git a/UWPHook/bin/Debug/UWPHook.pdb b/UWPHook/bin/Debug/UWPHook.pdb
index 2471d00..950024e 100644
Binary files a/UWPHook/bin/Debug/UWPHook.pdb and b/UWPHook/bin/Debug/UWPHook.pdb differ
diff --git a/UWPHook/obj/Debug/GameControl.baml b/UWPHook/obj/Debug/GameControl.baml
deleted file mode 100644
index 151b5cf..0000000
Binary files a/UWPHook/obj/Debug/GameControl.baml and /dev/null differ
diff --git a/UWPHook/obj/Debug/GameControl.g.cs b/UWPHook/obj/Debug/GameControl.g.cs
deleted file mode 100644
index 1a8d80e..0000000
--- a/UWPHook/obj/Debug/GameControl.g.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-#pragma checksum "..\..\GameControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B94A3B2C8698E37FA30B383750547435"
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-using UWPHook;
-
-
-namespace UWPHook {
-
-
- ///
- /// Game
- ///
- public partial class Game : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
-
-
- #line 9 "..\..\GameControl.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock textBlock;
-
- #line default
- #line hidden
-
-
- #line 10 "..\..\GameControl.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock textBlock1;
-
- #line default
- #line hidden
-
-
- #line 11 "..\..\GameControl.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock textBlock2;
-
- #line default
- #line hidden
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/UWPHook;component/gamecontrol.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\GameControl.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
- this.textBlock = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 2:
- this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 3:
- this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/UWPHook/obj/Debug/MainWindow.baml b/UWPHook/obj/Debug/MainWindow.baml
index e7ae1ad..01f53df 100644
Binary files a/UWPHook/obj/Debug/MainWindow.baml and b/UWPHook/obj/Debug/MainWindow.baml differ
diff --git a/UWPHook/obj/Debug/MainWindow.g.cs b/UWPHook/obj/Debug/MainWindow.g.cs
index 2dbab16..5382252 100644
--- a/UWPHook/obj/Debug/MainWindow.g.cs
+++ b/UWPHook/obj/Debug/MainWindow.g.cs
@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "52D5E2F31147D8DFFD5BB4DC42FD9D44"
+#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EB1C3AA91BED862DBD7F69AABACA045D"
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
@@ -49,7 +49,7 @@ namespace UWPHook {
#line hidden
- #line 37 "..\..\MainWindow.xaml"
+ #line 36 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button addButton;
@@ -57,7 +57,7 @@ namespace UWPHook {
#line hidden
- #line 38 "..\..\MainWindow.xaml"
+ #line 37 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox alias_textBox;
@@ -65,7 +65,7 @@ namespace UWPHook {
#line hidden
- #line 39 "..\..\MainWindow.xaml"
+ #line 38 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label label;
@@ -73,7 +73,7 @@ namespace UWPHook {
#line hidden
- #line 40 "..\..\MainWindow.xaml"
+ #line 39 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox path_textBox;
@@ -81,7 +81,7 @@ namespace UWPHook {
#line hidden
- #line 41 "..\..\MainWindow.xaml"
+ #line 40 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label label_Copy;
@@ -89,7 +89,7 @@ namespace UWPHook {
#line hidden
- #line 42 "..\..\MainWindow.xaml"
+ #line 41 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button helpButton;
@@ -140,7 +140,7 @@ namespace UWPHook {
case 3:
this.addButton = ((System.Windows.Controls.Button)(target));
- #line 37 "..\..\MainWindow.xaml"
+ #line 36 "..\..\MainWindow.xaml"
this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click);
#line default
diff --git a/UWPHook/obj/Debug/MainWindow.g.i.cs b/UWPHook/obj/Debug/MainWindow.g.i.cs
index 2dbab16..5382252 100644
--- a/UWPHook/obj/Debug/MainWindow.g.i.cs
+++ b/UWPHook/obj/Debug/MainWindow.g.i.cs
@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "52D5E2F31147D8DFFD5BB4DC42FD9D44"
+#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EB1C3AA91BED862DBD7F69AABACA045D"
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
@@ -49,7 +49,7 @@ namespace UWPHook {
#line hidden
- #line 37 "..\..\MainWindow.xaml"
+ #line 36 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button addButton;
@@ -57,7 +57,7 @@ namespace UWPHook {
#line hidden
- #line 38 "..\..\MainWindow.xaml"
+ #line 37 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox alias_textBox;
@@ -65,7 +65,7 @@ namespace UWPHook {
#line hidden
- #line 39 "..\..\MainWindow.xaml"
+ #line 38 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label label;
@@ -73,7 +73,7 @@ namespace UWPHook {
#line hidden
- #line 40 "..\..\MainWindow.xaml"
+ #line 39 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox path_textBox;
@@ -81,7 +81,7 @@ namespace UWPHook {
#line hidden
- #line 41 "..\..\MainWindow.xaml"
+ #line 40 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Label label_Copy;
@@ -89,7 +89,7 @@ namespace UWPHook {
#line hidden
- #line 42 "..\..\MainWindow.xaml"
+ #line 41 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button helpButton;
@@ -140,7 +140,7 @@ namespace UWPHook {
case 3:
this.addButton = ((System.Windows.Controls.Button)(target));
- #line 37 "..\..\MainWindow.xaml"
+ #line 36 "..\..\MainWindow.xaml"
this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click);
#line default
diff --git a/UWPHook/obj/Debug/UWPHook.csproj.FileListAbsolute.txt b/UWPHook/obj/Debug/UWPHook.csproj.FileListAbsolute.txt
index f75884e..b6e1baf 100644
--- a/UWPHook/obj/Debug/UWPHook.csproj.FileListAbsolute.txt
+++ b/UWPHook/obj/Debug/UWPHook.csproj.FileListAbsolute.txt
@@ -12,5 +12,3 @@ c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\U
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.csproj.GenerateResource.Cache
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.exe
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.pdb
-c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\GameControl.g.cs
-c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\GameControl.baml
diff --git a/UWPHook/obj/Debug/UWPHook.exe b/UWPHook/obj/Debug/UWPHook.exe
index abf7a99..980df01 100644
Binary files a/UWPHook/obj/Debug/UWPHook.exe and b/UWPHook/obj/Debug/UWPHook.exe differ
diff --git a/UWPHook/obj/Debug/UWPHook.g.resources b/UWPHook/obj/Debug/UWPHook.g.resources
index 5edc5ca..f2e9313 100644
Binary files a/UWPHook/obj/Debug/UWPHook.g.resources and b/UWPHook/obj/Debug/UWPHook.g.resources differ
diff --git a/UWPHook/obj/Debug/UWPHook.pdb b/UWPHook/obj/Debug/UWPHook.pdb
index 2471d00..950024e 100644
Binary files a/UWPHook/obj/Debug/UWPHook.pdb and b/UWPHook/obj/Debug/UWPHook.pdb differ
diff --git a/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache b/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache
index 68f3c8c..d08cdb4 100644
--- a/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache
+++ b/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache
@@ -10,11 +10,11 @@ none
false
DEBUG;TRACE
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml
-2-1868972323
+11151548125
-7740677473
+6-470569544
131569487696
-GameControl.xaml;MainWindow.xaml;
+MainWindow.xaml;
False
diff --git a/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.cache b/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.cache
index 8ee2711..e157283 100644
--- a/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.cache
+++ b/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.cache
@@ -10,11 +10,11 @@ none
false
DEBUG;TRACE
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml
-2-1868972323
+11151548125
-11-644645457
+10-1855892474
131569487696
-GameControl.xaml;MainWindow.xaml;
+MainWindow.xaml;
-True
+False
diff --git a/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.lref b/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.lref
deleted file mode 100644
index 30c5d9e..0000000
--- a/UWPHook/obj/Debug/UWPHook_MarkupCompile.i.lref
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-Fc:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;;
-
diff --git a/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref b/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref
index 94a1823..30c5d9e 100644
--- a/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref
+++ b/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref
@@ -1,5 +1,4 @@
-Fc:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\GameControl.xaml;;
Fc:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;;