Beispiel #1
0
        private void infoDirectory_Click(object sender, EventArgs e)
        {
            // Open file parent directory in default web browser
            Process browser = new Process();

            browser.StartInfo.UseShellExecute = true;
            browser.StartInfo.FileName        = TextExtensions.GetParentUriString(new Uri(currentFile.URL)).Remove(TextExtensions.GetParentUriString(new Uri(currentFile.URL)).Length - 1);;
            browser.Start();
        }
Beispiel #2
0
        private void btnViewDirectory_ClickButtonArea(object Sender, MouseEventArgs e)
        {
            // Open parent directory of file in default web browser
            Process browser = new Process();

            browser.StartInfo.UseShellExecute = true;
            browser.StartInfo.FileName        = TextExtensions.GetParentUriString(new Uri(currentFile.URL)).Remove(TextExtensions.GetParentUriString(new Uri(currentFile.URL)).Length - 1);;
            browser.Start();
        }
Beispiel #3
0
        private void infoDirectory_Click(object sender, EventArgs e)
        {
            Uri     uri        = new Uri(currentFile.URL);
            string  parentName = TextExtensions.GetParentUriString(uri).Remove(TextExtensions.GetParentUriString(uri).Length - 1);
            Process browser    = new Process();

            browser.StartInfo.UseShellExecute = true;
            browser.StartInfo.FileName        = parentName;
            browser.Start();
        }