Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var buttonParam = new ButtonParamWf("labelText", "buttonText", (o, args) => { Console.WriteLine("Button clicked"); });
            var fileParam   = new CheckedFileParamWf("test", (s, control) =>
            {
                if (!string.IsNullOrWhiteSpace(s))
                {
                    control.selectButton.BackColor = Color.Aqua;
                    control.ToolTip.SetToolTip(control.selectButton, "good job!");
                }
            });
            var    processing = new PluginInterop.Python.MatrixProcessing();
            string err        = "";
            var    parameters = processing.GetParameters(null, ref err);
            var    form       = new ParameterForm(new Parameters(buttonParam, fileParam), "test", "test help", "help output", new List <string>());

            form.Load += (sender, args) =>
            {
                var form2 = new ParameterForm(parameters, "python", "asdf", "asdfsdf", new List <string>());
                form2.Show();
            };
            Application.Run(form);
        }
Exemple #2
0
        private void TB_Parameters_Click(object sender, EventArgs e)
        {
            ParameterForm form = new ParameterForm(TB_Distance.Text);

            form.Show();
        }
Exemple #3
0
        private void ParameterName_DoubleClick(object sender, EventArgs e)
        {
            ParameterForm form = new ParameterForm(_parameter);

            form.Show();
        }