PKHeX.Form1.clickOpenTempFolder C# (CSharp) Method

clickOpenTempFolder() private method

private clickOpenTempFolder ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void clickOpenTempFolder(object sender, EventArgs e)
        {
            string path;
            switch (ModifierKeys)
            {
                case Keys.Control: // Cache
                    path = Util.GetCacheFolder();
                    if (Directory.Exists(path)) System.Diagnostics.Process.Start("explorer.exe", @path); else Util.Alert("Can't find the cache folder."); 
                    break;
                case Keys.Shift: // SaveDataBackup
                    Path.Combine(Path.GetDirectoryName(path3DS), "SaveDataBackup", "main");
                    if (path3DS != null && File.Exists(path = Path.Combine(Path.GetDirectoryName(path3DS), "SaveDataBackup", "main")))
                        System.Diagnostics.Process.Start("explorer.exe", @Path.GetDirectoryName(path)); else Util.Alert("Can't find the SaveDataBackup folder.");
                    break;
                case Keys.Alt: // SaveDataFiler
                    path = Util.GetSDFLocation();
                    if (Directory.Exists(path)) System.Diagnostics.Process.Start("explorer.exe", @path); else Util.Alert("Can't find the SDF folder."); 
                    break;
                default: // Root
                    path = Util.GetTempFolder();
                    if (Directory.Exists(Path.Combine(path, "root"))) System.Diagnostics.Process.Start("explorer.exe", @Path.Combine(path, "root")); 
                    else if (Directory.Exists(path)) System.Diagnostics.Process.Start("explorer.exe", @path); 
                    else { Util.Error("Can't find the temporary file.", "Make sure the Cyber Gadget software is paused."); }
                    break;
            }
        }
Form1