Exemple #1
0
        private void OpenInFileExplorerMenuItem_Click(object sender, EventArgs e)
        {
            var path = GetSelectedNodePath();

            if (path != null)
            {
                OpenInExplorer?.Invoke(sender, new DirectoryEventArgs(path));
            }
        }
Exemple #2
0
        private void DataGrid_OnDoubleClickRow(object _sender, MouseButtonEventArgs _e)
        {
            DataGridRow row = _sender as DataGridRow;

            Debug.Assert(row != null);

            RenameResult renameResult = row.DataContext as RenameResult;

            Debug.Assert(renameResult != null);

            string fullName = renameResult.ProposedFile;

            Debug.Assert(!string.IsNullOrWhiteSpace(fullName));

            OpenInExplorer.Open(fullName);
        }
        private void DataGrid_OnDoubleClickRow(object _sender, MouseButtonEventArgs _e)
        {
            DataGridRow row = _sender as DataGridRow;

            Debug.Assert(row != null);

            FileInfo fileInfo = row.DataContext as FileInfo;

            Debug.Assert(fileInfo != null);

            string fullName = fileInfo.FullName;

            Debug.Assert(!string.IsNullOrWhiteSpace(fullName));

            OpenInExplorer.Open(fullName);
        }