Пример #1
0
        public SelectorInputWin(string _name, List <string> _options, int _selection)
        {
            name = _name;
            // owner = null;
            RTowner           = null;
            options           = _options;
            selection         = _selection;
            originalSelection = selection;

            InitializeComponent();

            foreach (string s in options)
            {
                SelectorWinList.Items.Add(s);
            }

            SelectorWinList.SelectedIndex         = selection;
            SelectorWinList.Click                += SelectorWinList_Click;
            SelectorWinList.SelectedIndexChanged += SelectorWinList_SelectedIndexChanged;
            SelectorWinList.DrawMode              = DrawMode.OwnerDrawFixed;
            SelectorWinList.DrawItem             += new System.Windows.Forms.DrawItemEventHandler(selectorBox_DrawItem);

            KeyDown += SelectorInputWin_KeyDown;

            KeyPreview = true;
        }
Пример #2
0
 /*
  * public SelectorInputWin(ProcessingControl _owner, string _name, List<string> _options, int _selection):
  *  this(_name,_options,_selection)
  * {
  *  owner = _owner;
  * }
  */
 public SelectorInputWin(RTSelector _owner, string _name, List <string> _options, int _selection) :
     this(_name, _options, _selection)
 {
     RTowner = _owner;
 }