using OpenCvSharp; using PaintDotNet.Base; using System; using System.Collections.Generic; using System.Windows.Forms; namespace PaintDotNet.Data.Param { public class StringArray : Args { public void numberParam_ValueChanged(object sender, EventArgs e) { if(sender is RadioButton) { if (((RadioButton)sender).Checked) this.value = (Enum)(((RadioButton)sender).Tag); } else if (sender is ComboBox) { this.value = (Enum)(((ComboBox)sender).SelectedValue); } } public StringArray(string key, string name, Dictionary keyValuePairs, Enum menum) { this.Key = key; this.Name = name; this.initialValue = keyValuePairs; this.Value = menum; this.Type = Dtryt.Array; } public StringArray() { this.Type = Dtryt.Array; } } }