2016-11-15 17:04:48 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2016-11-16 13:10:30 -05:00
|
|
|
|
using WifiSitter;
|
2016-11-17 03:10:44 -05:00
|
|
|
|
using WifiSitter.Model;
|
2016-11-16 13:10:30 -05:00
|
|
|
|
|
|
|
|
|
namespace WifiSitterGui.ViewModel
|
2016-11-15 17:04:48 -05:00
|
|
|
|
{
|
2016-11-17 13:06:17 -05:00
|
|
|
|
public class MainWindowViewModel : MvvmObservable
|
2016-11-15 17:04:48 -05:00
|
|
|
|
{
|
|
|
|
|
#region fields
|
2016-11-16 13:10:30 -05:00
|
|
|
|
|
2016-11-17 03:10:44 -05:00
|
|
|
|
SimpleNetworkState _netState;
|
2016-11-16 13:10:30 -05:00
|
|
|
|
|
2016-11-15 17:04:48 -05:00
|
|
|
|
#endregion // fields
|
|
|
|
|
|
2016-11-15 20:33:07 -05:00
|
|
|
|
|
2016-11-15 17:04:48 -05:00
|
|
|
|
#region constructor
|
|
|
|
|
|
|
|
|
|
public MainWindowViewModel () {
|
2016-11-17 03:10:44 -05:00
|
|
|
|
_netState = new SimpleNetworkState();
|
2016-11-15 17:04:48 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion // constructor
|
|
|
|
|
|
2016-11-15 20:33:07 -05:00
|
|
|
|
|
2016-11-15 17:04:48 -05:00
|
|
|
|
#region properties
|
2016-11-16 13:10:30 -05:00
|
|
|
|
|
2016-11-17 03:10:44 -05:00
|
|
|
|
public SimpleNetworkState NetState {
|
2016-11-16 13:10:30 -05:00
|
|
|
|
get { return _netState; }
|
2016-11-17 03:10:44 -05:00
|
|
|
|
set { _netState = value; OnPropertyChanged("NetState"); }
|
2016-11-16 13:10:30 -05:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-15 17:04:48 -05:00
|
|
|
|
#endregion // properties
|
|
|
|
|
|
2016-11-15 20:33:07 -05:00
|
|
|
|
|
2016-11-15 17:04:48 -05:00
|
|
|
|
#region methods
|
|
|
|
|
#endregion // methods
|
|
|
|
|
|
2016-11-15 20:33:07 -05:00
|
|
|
|
|
2016-11-15 17:04:48 -05:00
|
|
|
|
#region eventhandlers
|
|
|
|
|
#endregion // methods
|
|
|
|
|
}
|
|
|
|
|
}
|