Пример #1
0
 public static void SetLastPath(string path) // Saves the last path from the SoundfontImport dialog to the registry
 {
     try
     {
         OmniMIDIConfiguratorMain.LastBrowserPath = path;
         OmniMIDIConfiguratorMain.SynthPaths.SetValue("lastpathsfimport", path);
         Program.DebugToConsole(false, String.Format("Last Explorer path is: {0}", path), null);
     }
     catch
     {
         Functions.InitializeLastPath();
     }
 }
Пример #2
0
 public static void SetLastImportExportPath(string path) // Saves the last path from the ExternalListImport/ExternalListExport dialog to the registry
 {
     try
     {
         OmniMIDIConfiguratorMain.LastImportExportPath = path;
         OmniMIDIConfiguratorMain.SynthPaths.SetValue("lastpathlistimpexp", path);
         Program.DebugToConsole(false, String.Format("Last Import/Export path is: {0}", path), null);
     }
     catch
     {
         Functions.InitializeLastPath();
     }
 }
Пример #3
0
        public static void TriggerReload(Boolean forced) // Tells OmniMIDI to load a specific list
        {
            try
            {
                if (Properties.Settings.Default.AutoLoadList || forced)
                {
                    if (Convert.ToInt32(OmniMIDIConfiguratorMain.Watchdog.GetValue("currentsflist")) == OmniMIDIConfiguratorMain.whichone)
                    {
                        OmniMIDIConfiguratorMain.Watchdog.SetValue("rel" + OmniMIDIConfiguratorMain.whichone.ToString(), "1", RegistryValueKind.DWord);
                    }

                    Program.DebugToConsole(false, String.Format("(Re)Loaded soundfont list {0}.", OmniMIDIConfiguratorMain.whichone), null);
                    OmniMIDIConfiguratorMain.Delegate.Lis.Refresh();
                }
            }
            catch
            {
                Functions.InitializeLastPath();
            }
        }