Exemplo n.º 1
0
 private void Select(Block block)
 {
     //Debug.WriteLine("Select(Block block)");
     if (!(this._selectedBlock == block))
         this.OnNeglectProposed();
     this._selectedIndex = this._blocks.IndexOf(block);
     this._selectedBlock = block;
     this._dameer._textBox.Select(block.Index, block.Length);
 }
Exemplo n.º 2
0
 private void InitBlocks()
 {
     //Debug.WriteLine("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();
 }