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