EBS_POC/EBS POC/Models/Main_Model.cs

31 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace EBS_POC.Models
{
public class Main_Model : INotifyPropertyChanged
{
public static Main_Model Current { get; set; } = new Main_Model();
public int Port { get; set; } = 33885;
public bool IsHost { get; set; }
public Master_File EBSFile { get; set; }
public string EBSFilePath { get; set; }
public FileStream LockFS { get; set; }
public TcpListener Listener { get; set; }
public TcpClient ConnectionToServer { get; set; }
public Dictionary<string, Socket> ClientList { get; set; } = new Dictionary<string, Socket>();
public event PropertyChangedEventHandler PropertyChanged;
public void FirePropertyChanged(string PropertyName)
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs(PropertyName));
}
}
}