public Form_UITypeEditor_DashStyle(IWindowsFormsEditorService wfes, DashStyle style) { editStyle = EditStyle.dash; InitializeComponent(); foreach (DashStyle s in DashStyle.GetValues(typeof(DashStyle))) { listBox1.Items.Add(s); } _wfes = wfes; _style = style; }