/// <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) { } }
/// <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) { } }
/// <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) { } }