/// <summary> /// Constructor of <see cref="SendImageContentClientScript"/> with the Client connector /// </summary> /// <param name="connector">Client connector</param> public SendImageContentClientScript(Connector connector) : base(connector) { identifier = Guid.NewGuid(); AvailableParameters.Add(new ScriptParameter() { Name = filePathParam }); }
/// <summary> /// Constructor of <see cref="ExportFileClientScript"/> with the Client Connector /// </summary> /// <param name="connector"></param> public ExportFileClientScript(Connector connector) : base(connector) { identifier = Guid.NewGuid(); AvailableParameters.Add(new ScriptParameter() { Name = param }); AvailableParameters.Add(new ScriptParameter() { Name = "args" }); }
/// <summary> /// Constructor with the Client connector base on <see cref="BaseClientScript"/> /// </summary> /// <param name="connector">Client Connector</param> public ExecuteProcessClientScript(Connector connector) : base(connector) { identifier = Guid.NewGuid(); AvailableParameters.Add(new ScriptParameter() { Name = filePathParam }); AvailableParameters.Add(new ScriptParameter() { Name = argsParam }); }
private void addReport_Click(object sender, RoutedEventArgs e) { reports = (ClashReports)reportsListBox.DataContext; if (reports == null) return; reports.Add(); availableParameters = (AvailableParameters)LeftParamListBox.DataContext; if (reports.Parameters.Count != 0) { foreach (Parameter param in reports.Parameters) { if (!selectedParameters.Contains(param) && !availableParameters.Contains(param)) { availableParameters.Add(param); } } } }