Beispiel #1
0
 private void Select(Block block)
 {
     if (!(this._selectedBlock == block))
         this.OnNeglectProposed();
     this._selectedIndex = this._blocks.IndexOf(block);
     this._selectedBlock = block;
     if (this._dtPicker != null)
         this._dtPicker._textBox.Select(block.Index, block.Length);
     //else
     //    this._dameer._textBox.Select(block.Index, block.Length);
 }
Beispiel #2
0
 private void InitBlocks()
 {
     foreach (string f in this._supportedFormats)
         this._blocks.AddRange(this.GetBlocks(f));
     this._blocks = this._blocks.OrderBy((a) => a.Index).ToList();
     this._selectedBlock = this._blocks[0];
     this.Render();
 }