private void Select(Block block) { if (_selectedBlock != block) { OnNeglectProposed(); } _selectedIndex = _blocks.IndexOf(block); _selectedBlock = block; DateTimePicker.TextBox.Select(block.Index, block.Length); }
private void InitBlocks() { foreach (string f in _supportedFormats) _blocks.AddRange(GetBlocks(f)); _blocks = _blocks.OrderBy(a => a.Index).ToList(); _selectedBlock = _blocks[0]; Render(); }