diff --git a/Client/App.xaml b/Client/App.xaml
index ab673d9..408569d 100644
--- a/Client/App.xaml
+++ b/Client/App.xaml
@@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Client"
- StartupUri="MainWindow.xaml">
+ >
diff --git a/Client/App.xaml.cs b/Client/App.xaml.cs
index 1d01910..30a075c 100644
--- a/Client/App.xaml.cs
+++ b/Client/App.xaml.cs
@@ -13,5 +13,17 @@ namespace Client
///
public partial class App : Application
{
+
+ protected override void OnStartup(StartupEventArgs e)
+ {
+ base.OnStartup(e);
+ MainWindow startWindow = new MainWindow();
+ ViewModel VM = new ViewModel();
+ startWindow.DataContext = VM;
+ startWindow.Show();
+ }
+
}
+
+
}
diff --git a/Client/Client.csproj b/Client/Client.csproj
index 0bcea97..f239f26 100644
--- a/Client/Client.csproj
+++ b/Client/Client.csproj
@@ -6,6 +6,11 @@
true
+
+
+
+
+
diff --git a/Client/FodyWeavers.xml b/Client/FodyWeavers.xml
new file mode 100644
index 0000000..d5abfed
--- /dev/null
+++ b/Client/FodyWeavers.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/Client/FodyWeavers.xsd b/Client/FodyWeavers.xsd
new file mode 100644
index 0000000..69dbe48
--- /dev/null
+++ b/Client/FodyWeavers.xsd
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+ Used to control if the On_PropertyName_Changed feature is enabled.
+
+
+
+
+ Used to control if the Dependent properties feature is enabled.
+
+
+
+
+ Used to control if the IsChanged property feature is enabled.
+
+
+
+
+ Used to change the name of the method that fires the notify event. This is a string that accepts multiple values in a comma separated form.
+
+
+
+
+ Used to control if equality checks should be inserted. If false, equality checking will be disabled for the project.
+
+
+
+
+ Used to control if equality checks should use the Equals method resolved from the base class.
+
+
+
+
+ Used to control if equality checks should use the static Equals method resolved from the base class.
+
+
+
+
+ Used to turn off build warnings from this weaver.
+
+
+
+
+ Used to turn off build warnings about mismatched On_PropertyName_Changed methods.
+
+
+
+
+
+
+
+ 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
+
+
+
+
+ A comma-separated list of error codes that can be safely ignored in assembly verification.
+
+
+
+
+ 'false' to turn off automatic generation of the XML Schema file.
+
+
+
+
+
\ No newline at end of file
diff --git a/Client/MainWindow.xaml b/Client/MainWindow.xaml
index 0a31cd2..5606707 100644
--- a/Client/MainWindow.xaml
+++ b/Client/MainWindow.xaml
@@ -7,6 +7,60 @@
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Client/Model.cs b/Client/Model.cs
new file mode 100644
index 0000000..6fb46cb
--- /dev/null
+++ b/Client/Model.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Text;
+
+namespace Client
+{
+ class Model : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ private int _numbers;
+ private bool _status;
+
+ public int Numbers
+ {
+ get
+ {
+ return _numbers;
+ }
+
+ set
+ {
+ _numbers = value;
+ }
+ }
+
+
+ public bool Status
+ {
+ get
+ {
+ return _status;
+ }
+
+ set
+ {
+ _status = value;
+ }
+ }
+
+
+ public Model()
+ {
+ _status = false;
+ _numbers = 0;
+ }
+
+ }
+}
diff --git a/Client/ViewModel.cs b/Client/ViewModel.cs
new file mode 100644
index 0000000..63d41d5
--- /dev/null
+++ b/Client/ViewModel.cs
@@ -0,0 +1,70 @@
+using GalaSoft.MvvmLight.Command;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Text;
+using System.Windows.Input;
+
+namespace Client
+{
+ class ViewModel : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged;
+
+
+
+ public ViewModel()
+ {
+ _model = new Model();
+ ButtonCommand = new RelayCommand(() =>
+ {
+ ClickCheck();
+ });
+
+ _lobbies = new List();
+
+ _lobbies.Add(new Lobby(50, 3, 8));
+ _lobbies.Add(new Lobby(69, 1, 9));
+ _lobbies.Add(new Lobby(420, 7, 7));
+ }
+
+ private void ClickCheck()
+ {
+ if(!(_model.Status))
+ _model.Status = true;
+
+ _model.Numbers = _model.Numbers + 5;
+ }
+
+ public ICommand ButtonCommand { get; set; }
+
+
+ private Model _model;
+ public Model Model
+ {
+ get
+ {
+ if (_model == null)
+ _model = new Model();
+
+ return _model;
+ }
+
+ set
+ {
+ _model = value;
+ }
+ }
+
+ private List _lobbies;
+ public List Lobbies
+ {
+ get { return _lobbies; }
+ set { _lobbies = value; }
+ }
+
+
+
+
+ }
+}
diff --git a/SharedClientServer/Lobby.cs b/SharedClientServer/Lobby.cs
new file mode 100644
index 0000000..f408097
--- /dev/null
+++ b/SharedClientServer/Lobby.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Text;
+
+namespace Client
+{
+ class Lobby : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged;
+
+
+ private int _id;
+ private int _playersIn;
+ private int _maxPlayers;
+
+ public Lobby(int id, int playersIn, int maxPlayers)
+ {
+ _id = id;
+ _playersIn = playersIn;
+ _maxPlayers = maxPlayers;
+ }
+
+ public int ID
+ {
+ get { return _id; }
+ set { _id = value; }
+ }
+
+ public int PlayersIn
+ {
+ get { return _playersIn; }
+ set { _playersIn = value; }
+ }
+
+ public int MaxPlayers
+ {
+ get { return _maxPlayers; }
+ set { _maxPlayers = value; }
+ }
+
+
+ }
+}