示例#1
0
 /// <summary>
 /// DeleteHandler function.
 /// deletes handler.
 /// </summary>
 /// <param name="toBeDeleted"></param>
 public void DeleteHandler(string toBeDeleted)
 {
     try
     {
         string[] arr = { toBeDeleted };
         CommandRecievedEventArgs eventArgs = new CommandRecievedEventArgs((int)CommandEnum.CloseHandler, arr, "");
         GuiClient.SendCommand(eventArgs);
     }
     catch (Exception ex)
     {
     }
 }
示例#2
0
 /// <summary>
 /// retreive event log entries list from the image service.
 /// </summary>
 private void InitializeLogsParams()
 {
     try
     {
         LogEntries = new List <Log>();
         CommandRecievedEventArgs commandRecievedEventArgs = new CommandRecievedEventArgs((int)CommandEnum.LogCommand, null, "");
         GuiClient.SendCommand(commandRecievedEventArgs);
     }
     catch (Exception ex)
     {
     }
 }
示例#3
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)
     {
     }
 }