/// <summary> /// Initializes a new instance of the <see cref="ImageWebModel"/> class. /// </summary> public ImageWebModel() { Client = ImageServiceClient.Instance; IsConnected = Client.IsConnected; NumOfPics = 0; Students = GetStudents(); }
/// <summary> /// SettingModel constructor. /// </summary> public SettingModel() { this.GuiClient = ImageServiceClient.Instance; this.GuiClient.RecieveCommand(); this.GuiClient.UpdateResponse += UpdateResponse; this.InitializeSettingsParams(); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigModel"/> class. /// </summary> public ConfigModel() { client = ImageServiceClient.Instance; handlers = new List <string>(); this.client.DataReceived += NotifyChange; this.requested = false; }
public Log() { this.client = ImageServiceClient.Instance; this.client.UpdateResponse += UpdateResponse; this.client.RecieveCommand(); this.InitializeLogsParams(); }
public ImageWebInfo() { Counter = ""; Status = ""; this.client = ImageServiceClient.Instance; this.client.RecieveCommand(); this.client.UpdateResponse += UpdateResponse; Students = getList(); string[] arr = new string[2]; CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.ImageWebCommand, arr, ""); this.client.SendCommand(request); }
/// <summary> /// constructor. /// initialize new config params. /// </summary> public Config() { SourceName = ""; LogName = ""; OutputDirectory = ""; ThumbnailSize = 1; try { this.clien = ImageServiceClient.Instance; this.clien.RecieveCommand(); this.clien.UpdateResponse += UpdateResponse; Handlers = new ObservableCollection <string>(); Enabled = false; string[] arr = new string[5]; CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, ""); this.clien.SendCommand(request); SpinWait.SpinUntil(() => Enabled); } catch (Exception ex) { } }
/// <summary> /// MainWindowModel constructor. /// </summary> public MainWindowModel() { GuiClient = ImageServiceClient.Instance; IsConnected = GuiClient.IsConnected; }
/// <summary> /// Initializes a new instance of the <see cref="LogsModel"/> class. /// </summary> public LogsModel() { client = ImageServiceClient.Instance; client.DataReceived += NotifyChange; }