public LogsModel() { ClientAdapter = new ImageWebClient(); if (!ClientAdapter.Client.IsConnected) { ClientAdapter.Connect(); } this.logs = new List <LogMessage>(); ClientAdapter.NotifyOnMessage += this.OnMessage; this.ClientAdapter.GetLogs(); }
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(); }