1234567891011121314151617181920212223242526272829303132333435363738 |
- 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<Enum, Object> 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;
- }
- }
- }
|