Exemple #1
0
        private void HandleDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var grid = sender as DataGrid;
            var data = grid.SelectedItem as string[];

            _dataModel.HandleItemDoubleClick(data[_dataModel.PathColumnIndex]);
        }
 /// -----------------------------------------------------------------------------------
 /// <summary>
 /// override this if you want to handle double-clicked items
 /// </summary>
 /// -----------------------------------------------------------------------------------
 public override void HandleItemDoubleClick(IItemData item)
 {
     _spreadSheetModel.HandleItemDoubleClick(item.FullName.Replace("(root)/", ""));
 }