Ejemplo n.º 1
0
 private void addAnAppToTheListAppNameOnlyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddApp.InitialDirectory = LastBrowserPath;
     if (AddApp.ShowDialog() == DialogResult.OK)
     {
         foreach (string str in AddApp.FileNames)
         {
             AddAppNameOnlyToList(str);
         }
     }
 }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 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);
         }
     }
 }