void HandleSelectAllCommand (object sender, EventArgs args) { if (Window.Focus is Editable) { (Window.Focus as Editable).SelectRegion (0, -1); // select all in text box return; } icon_view.SelectAllCells (); UpdateStatusLabel (); }