示例#1
0
 public LogsModel()
 {
     ClientAdapter = new ImageWebClient();
     if (!ClientAdapter.Client.IsConnected)
     {
         ClientAdapter.Connect();
     }
     this.logs = new List <LogMessage>();
     ClientAdapter.NotifyOnMessage += this.OnMessage;
     this.ClientAdapter.GetLogs();
 }
示例#2
0
 public ImageWebModel()
 {
     Client = new ImageWebClient();
     if (!Client.Client.IsConnected)
     {
         Client.Connect();
     }
     this.isConnected = Client.Client.IsConnected;
     this.numOfPhotos = this.countNumOfPhotosInDir();
     this.students    = new List <StudentDetails>();
     this.readStudentsDetails();
 }