public static void FileManagerOnDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = FindDataGridRow((DependencyObject)e.OriginalSource);

            if (row != null)
            {
                RegisterFile file = row.Item as RegisterFile;
                RegisterFileService.OpenRegisterFile(file);
            }
        }
        public static void FileManagerOnSingleClick(object sender, MouseButtonEventArgs e)
        {
            //System.Windows.Controls.DataGrid grid = sender as System.Windows.Controls.DataGrid;
            //DataGridRow dgr = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;

            var cell = FindDataGridCell((DependencyObject)e.OriginalSource);

            if (cell != null)
            {
                var row = FindDataGridRow(cell);
                if (row != null)
                {
                    DataGridBoundColumn col = cell.Column as DataGridBoundColumn;

                    if (col.DisplayIndex == 2)
                    {
                        RegisterFile file = row.Item as RegisterFile;
                        RegisterFileService.OpenRegisterFileLocation(file);
                    }
                }
            }
        }