private void Menu_LoadDecrypted_Click(object sender, EventArgs e) { using var fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() != DialogResult.OK) { return; } SAV.Load(fbd.SelectedPath); System.Media.SystemSounds.Asterisk.Play(); }
private void LoadDecryptedFromPath(string main) { var dir = Path.GetDirectoryName(main); if (dir is null || !Directory.Exists(dir)) { WinFormsUtil.Alert(MessageStrings.MsgImportDirectoryDoesNotExist); return; } SAV.Load(dir); ReloadAll(); // reload all fields System.Media.SystemSounds.Asterisk.Play(); }
private void LoadDecryptedFromPath(string main) { var dir = Path.GetDirectoryName(main); if (dir is null || !Directory.Exists(dir)) { WinFormsUtil.Alert("Directory does not exist!"); return; } SAV.Load(dir); LoadAll(); // reload all fields System.Media.SystemSounds.Asterisk.Play(); }