예제 #1
0
 /// <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
     });
 }
예제 #2
0
 /// <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
     });
 }
예제 #4
0
        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);
                    }
                }
            }
        }