Esempio n. 1
0
 /// <summary>
 /// LogCollection constructor.
 /// initialize new Log list.
 /// </summary>
 public LogCollection()
 {
     try
     {
         GuiClient = ImageServiceClient.Instance;
         GuiClient.UpdateResponse += UpdateResponse;
         GuiClient.RecieveCommand();
         this.InitializeLogsParams();
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 2
0
 /// <summary>
 /// constructor.
 /// initialize new config params.
 /// </summary>
 public Config()
 {
     try
     {
         GuiClient = Communication.ImageServiceClient.Instance;
         GuiClient.RecieveCommand();
         GuiClient.UpdateResponse += UpdateResponse;
         SourceName      = "";
         LogName         = "";
         OutputDirectory = "";
         ThumbnailSize   = 1;
         Handlers        = new ObservableCollection <string>();
         Enabled         = false;
         string[] arr = new string[5];
         CommandRecievedEventArgs request = new CommandRecievedEventArgs((int)CommandEnum.GetConfigCommand, arr, "");
         GuiClient.SendCommand(request);
     }
     catch (Exception ex)
     {
     }
 }