private void addAnAppToTheListAppNameOnlyToolStripMenuItem_Click(object sender, EventArgs e) { AddApp.InitialDirectory = LastBrowserPath; if (AddApp.ShowDialog() == DialogResult.OK) { foreach (string str in AddApp.FileNames) { AddAppNameOnlyToList(str); } } }
private void addAnAppToTheListAppNameOnlyToolStripMenuItem_Click(object sender, EventArgs e) { AddApp.InitialDirectory = Properties.Settings.Default.LastBrowserPath; if (AddApp.ShowDialog() == DialogResult.OK) { foreach (string str in AddApp.FileNames) { AddAppNameOnlyToList(str); } Properties.Settings.Default.LastBrowserPath = Path.GetDirectoryName(AddApp.FileNames[0]); Properties.Settings.Default.Save(); } }
private void addAnAppToTheListToolStripMenuItem_Click(object sender, EventArgs e) { AddApp.InitialDirectory = LastBrowserPath; if (AddApp.ShowDialog() == DialogResult.OK) { foreach (string str in AddApp.FileNames) { RegistryKey SynthPaths = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Keppy's Synthesizer\\Paths", true); LastBrowserPath = Path.GetDirectoryName(str); SynthPaths.SetValue("lastpathsfassign", LastBrowserPath, RegistryValueKind.String); SynthPaths.Close(); AddAppToList(str); } } }