private void UpdateDownloader_Load(object sender, EventArgs e) { String PathExe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); if (!PathExe.Contains("C:\\Program Files")) { Process.Start(String.Format("https://github.com/KaleidonKep99/Keppys-MIDI-Converter/releases/tag/{0}", VersionToDownload)); Close(); } else { using (webClient = new WebClient()) { webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed); webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged); Uri URL = new Uri(String.Format("https://github.com/KaleidonKep99/Keppys-MIDI-Converter/releases/download/{0}/KeppyMIDIConverterSetup.exe", VersionToDownload)); try { webClient.DownloadFileAsync(URL, String.Format("{0}{1}", Path.GetTempPath(), "KeppyMIDIConverterSetup.exe")); } catch { MessageBox.Show(Languages.Parse("ConnectionErrorDesc"), String.Format("{0} {1} - {2}", Program.Who, Program.Title, Languages.Parse("ConnectionErrorTitle")), MessageBoxButtons.OK, MessageBoxIcon.Warning); Close(); } } } }
private void InitializeLanguage() { Text = Languages.Parse("VSTManager"); Desc1.Text = Languages.Parse("EmptySlot") + " 1"; Desc2.Text = Languages.Parse("EmptySlot") + " 2"; Desc3.Text = Languages.Parse("EmptySlot") + " 3"; Desc4.Text = Languages.Parse("EmptySlot") + " 4"; Desc5.Text = Languages.Parse("EmptySlot") + " 5"; Desc6.Text = Languages.Parse("EmptySlot") + " 6"; Desc7.Text = Languages.Parse("EmptySlot") + " 7"; Desc8.Text = Languages.Parse("EmptySlot") + " 8"; Load1.Text = Languages.Parse("LoadVST"); Load2.Text = Languages.Parse("LoadVST"); Load3.Text = Languages.Parse("LoadVST"); Load4.Text = Languages.Parse("LoadVST"); Load5.Text = Languages.Parse("LoadVST"); Load6.Text = Languages.Parse("LoadVST"); Load7.Text = Languages.Parse("LoadVST"); Load8.Text = Languages.Parse("LoadVST"); Unload1.Text = Languages.Parse("UnloadVST"); Unload2.Text = Languages.Parse("UnloadVST"); Unload3.Text = Languages.Parse("UnloadVST"); Unload4.Text = Languages.Parse("UnloadVST"); Unload5.Text = Languages.Parse("UnloadVST"); Unload6.Text = Languages.Parse("UnloadVST"); Unload7.Text = Languages.Parse("UnloadVST"); Unload8.Text = Languages.Parse("UnloadVST"); UnloadAllVSTs.Text = Languages.Parse("UnloadAllVSTs"); Desc.Text = Languages.Parse("VSTHowDoTheyWork"); UnloadAllVSTs.Text = Languages.Parse("UnloadAllVSTs"); OKBtn.Text = Languages.Parse("OKBtn"); }
public static bool ConfirmExit() { // Confirm user wants to close if (Bass.BASS_ChannelIsActive(KMCGlobals._recHandle) == BASSActive.BASS_ACTIVE_PLAYING) { DialogResult dialogResult = MessageBox.Show(Languages.Parse("AppBusy"), Languages.Parse("HeyYou"), MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (dialogResult == DialogResult.Yes) { return(true); } else if (dialogResult == DialogResult.No) { return(false); } else { return(false); } } else { return(true); } }
private void OverrideLanguage_Load(object sender, EventArgs e) { try { // First of all, add all the languages to the combobox foreach (string x in Languages.LanguagesAvailable) { LangSel.Items.Add(x); } // Then scan for (int i = 0; i <= Languages.LanguagesCodes.Length; i++) { if (String.Equals(Languages.LanguagesCodes[i], Properties.Settings.Default.SelectedLang)) { LangSel.SelectedIndex = i; break; } } // Then check if the override is enabled OverrideLanguageCheck.Checked = Properties.Settings.Default.LangOverride; LangSel.Enabled = Properties.Settings.Default.LangOverride; } catch (Exception ex) { ErrorHandler errordialog = new KeppyMIDIConverter.ErrorHandler(Languages.Parse("Error"), ex.ToString(), 0, 1); errordialog.ShowDialog(); } }
public static void InitializeLanguage() { // Translate system Delegate.Text = Languages.Parse("AdvSettingsTitle"); Delegate.AudioSettings.Text = Languages.Parse("AudioSettings"); Delegate.MaxVoicesLabel.Text = Languages.Parse("MaxVoices"); Delegate.AudioFreqLabel.Text = Languages.Parse("AudioFreq"); Delegate.SincInter.Text = Languages.Parse("SincInter"); Delegate.MIDIEventsSettings.Text = Languages.Parse("MIDIEventsSettings"); Delegate.IgnoreNotes1.Text = Languages.Parse("IgnoreNotes1"); Delegate.HighestVel.Text = Languages.Parse("HighestVel"); Delegate.LowestVel.Text = Languages.Parse("LowestVel"); Delegate.Limit88.Text = Languages.Parse("Limit88"); Delegate.Noteoff1.Text = Languages.Parse("NoteOff1"); Delegate.StreamSettings.Text = Languages.Parse("StreamSettings"); Delegate.ChannelsSettings.Text = Languages.Parse("ChannelsSettings"); Delegate.RTFPSLabel.Text = Languages.Parse("RealTimeFramerate"); Delegate.BitrateLabel.Text = String.Format("{0}:", Languages.Parse("Bitrate")); Delegate.FXDisable.Text = Languages.Parse("DisableEffects"); Delegate.OverrideTempoNow.Text = Languages.Parse("OverrideTempo"); Delegate.ConstantBitrate.Text = String.Format("{0}:", Languages.Parse("ConstantBitrate")); Delegate.OKBtn.Text = Languages.Parse("OKBtn"); }
public static void ShowIconTray() { KMCVersion.Index = 0; KMCVersion.Text = String.Format("KMC {0}.{1}.{2} {3} (Ses. {4})", InfoDialog.Converter.FileMajorPart, InfoDialog.Converter.FileMinorPart, InfoDialog.Converter.FileBuildPart, (Environment.Is64BitProcess ? "x64" : "x86"), BootUp.Session); KMCVersion.Enabled = false; Separator.Index = 1; Separator.Text = "-"; Separator.Enabled = false; ExitItem.Index = 2; ExitItem.Text = Languages.Parse("Exit"); ExitItem.Click += new System.EventHandler(ExitFromApp); NotifyMenu.MenuItems.AddRange(new MenuItem[] { KMCVersion, Separator, ExitItem }); NotifyTray.Icon = Properties.Resources.mainlogo1; NotifyTray.Text = "Keppy's MIDI Converter"; NotifyTray.Visible = true; NotifyTray.MouseClick += new MouseEventHandler(ClickTray); NotifyTray.ContextMenu = NotifyMenu; }
private static void SetPeak(Int32 Mode) { try { if (Mode == 0) { MainWindow.Delegate.RMSLabel.Text = String.Format("{0}: {1:#0.0} dB | {2}: {3:#0.0} dB | {4}: {5:#0.0} dB", Languages.Parse("RMS"), 0, Languages.Parse("AverageLevel"), 0, Languages.Parse("PeakLevel"), 0); } else if (Mode == 1) { MainWindow.Delegate.RMSLabel.Text = String.Format("{0}: {1:#0.0} dB | {2}: {3:#0.0} dB | {4}: {5:#0.0} dB", Languages.Parse("RMS"), MainWindow.KMCGlobals._plm.RMS_dBV, Languages.Parse("AverageLevel"), MainWindow.KMCGlobals._plm.AVG_dBV, Languages.Parse("PeakLevel"), Math.Max(MainWindow.KMCGlobals._plm.PeakHoldLevelL_dBV, MainWindow.KMCGlobals._plm.PeakHoldLevelR_dBV)); } } catch { MainWindow.Delegate.RMSLabel.Text = String.Format("{0}: {1:#0.0} dB | {2}: {3:#0.0} dB | {4}: {5:#0.0} dB", Languages.Parse("RMS"), 0, Languages.Parse("AverageLevel"), 0, Languages.Parse("PeakLevel"), 0); } }
private void CheckVoices_Tick(object sender, EventArgs e) { Text = String.Format(Languages.Parse("AdvancedVoicesTitle"), RTF.CPUUsage.ToString("0.0")); try { CHV1.Text = MainWindow.KMCStatus.ChannelsVoices[0].ToString(); CHV2.Text = MainWindow.KMCStatus.ChannelsVoices[1].ToString(); CHV3.Text = MainWindow.KMCStatus.ChannelsVoices[2].ToString(); CHV4.Text = MainWindow.KMCStatus.ChannelsVoices[3].ToString(); CHV5.Text = MainWindow.KMCStatus.ChannelsVoices[4].ToString(); CHV6.Text = MainWindow.KMCStatus.ChannelsVoices[5].ToString(); CHV7.Text = MainWindow.KMCStatus.ChannelsVoices[6].ToString(); CHV8.Text = MainWindow.KMCStatus.ChannelsVoices[7].ToString(); CHV9.Text = MainWindow.KMCStatus.ChannelsVoices[8].ToString(); CHV10.Text = MainWindow.KMCStatus.ChannelsVoices[9].ToString(); CHV11.Text = MainWindow.KMCStatus.ChannelsVoices[10].ToString(); CHV12.Text = MainWindow.KMCStatus.ChannelsVoices[11].ToString(); CHV13.Text = MainWindow.KMCStatus.ChannelsVoices[12].ToString(); CHV14.Text = MainWindow.KMCStatus.ChannelsVoices[13].ToString(); CHV15.Text = MainWindow.KMCStatus.ChannelsVoices[14].ToString(); CHV16.Text = MainWindow.KMCStatus.ChannelsVoices[15].ToString(); } catch { } System.Threading.Thread.Sleep(1); }
private void InitializeLanguage() { Text = Languages.Parse("BecomeAPatronTitle"); PatreonDesc.Text = Languages.Parse("PatreonDesc"); DontShowAnymore.Text = Languages.Parse("PatreonMaybeLater"); BecomeAPatronNow.Text = Languages.Parse("PatreonBecomeOne"); }
private void UnloadVST(int num, ref Label desc, ref Button unload, ref Button load) { MainWindow.VSTs.VSTInfo[num] = new BASS_VST_INFO(); KeppyMIDIConverter.MainWindow.VSTs.VSTDLLs[num] = null; KeppyMIDIConverter.MainWindow.VSTs.VSTDLLDescs[num] = null; desc.Text = String.Format("{0}: {1}", Languages.Parse("EmptySlot"), num + 1); unload.Enabled = false; load.Enabled = true; }
private void SFZCompliant_Click(object sender, EventArgs e) { DialogResult dialogResult = MessageBox.Show(Languages.Parse("AboutSFZFormatText"), Languages.Parse("AboutSFZFormatTitle"), MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (dialogResult == DialogResult.Yes) { Process.Start("http://drealm.info/sfz/plj-sfz.xhtml"); } }
private void InitializeAllLanguages() { InitializeLanguage(); MainWindow.InitializeLanguage(); AdvancedSettings.InitializeLanguage(); SoundfontDialog.InitializeLanguage(); AdvancedVoices.InitializeLanguage(); NotifyArea.ExitItem.Text = Languages.Parse("Exit"); }
private void InitializeLanguage() { Text = Languages.Parse("KeepAliveProject"); // Donation text DonateText.Text = Languages.Parse("DonateText"); ShowMeNext.Text = Languages.Parse("ShowMeNext"); DontShowAnymore.Text = Languages.Parse("DontShowAnymore"); }
private void InfoDialog_Load(object sender, EventArgs e) { ComputerInfo CI = new ComputerInfo(); String Version = String.Format("{0}.{1}.{2}", Converter.FileMajorPart, Converter.FileMinorPart, Converter.FileBuildPart); TaCI.Text = String.Format(Languages.Parse("TaCI"), Converter.FileMajorPart, DateTime.Now.Year, Languages.Parse("0Translators0")); ConverterVer.Text = String.Format("{0} ({1})", Version, (Environment.Is64BitProcess ? "x64, SSE2" : "x86, SSE")); BASSVer.Text = ReturnBASSAssemblyVersion(BASS.FileVersion, BASS.FilePrivatePart); BASSMIDIVer.Text = ReturnBASSAssemblyVersion(BASSMIDI.FileVersion, BASSMIDI.FilePrivatePart); CompilerDate.Text = BasicFunctions.GetLinkerTime(Assembly.GetExecutingAssembly(), TimeZoneInfo.Utc).ToString(Languages.ReturnCulture(false, null)); OSInfo.OSVERSIONINFOEX osVersionInfo = new OSInfo.OSVERSIONINFOEX { dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSInfo.OSVERSIONINFOEX)) }; if (Properties.Settings.Default.IsItPreRelease) { ConverterVer.Text += " (PRERELEASE)"; } WindowsName.Text = String.Format("{0} ({1})", OSInfo.Name, Environment.Is64BitOperatingSystem ? "64-bit" : "32-bit"); if (Environment.OSVersion.Version.Major == 10) // If OS is Windows 10, get UBR too { WindowsBuild.Text = String.Format(Languages.Parse("W10VerRev"), CurrentVerKey.GetValue("ReleaseId", 0).ToString(), CurrentVerKey.GetValue("UBR", 0).ToString()); } else // Else, give normal version number { if (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor > 1) { WindowsBuild.Text = String.Format("{0}.{1}.{2}", Environment.OSVersion.Version.Major, Environment.OSVersion.Version.Minor, Environment.OSVersion.Version.Build); } else { int SP = Int32.Parse(Regex.Match(Environment.OSVersion.ServicePack, @"\d+").Value, NumberFormatInfo.InvariantInfo); if (SP > 0) { WindowsBuild.Text = String.Format("{0}.{1}.{2} ({3})", Environment.OSVersion.Version.Major, Environment.OSVersion.Version.Minor, Environment.OSVersion.Version.Build, Environment.OSVersion.ServicePack); } else { WindowsBuild.Text = String.Format("{0}.{1}.{2}", Environment.OSVersion.Version.Major, Environment.OSVersion.Version.Minor, Environment.OSVersion.Version.Build); } } } }
private void PreloadSamplesNotSF_CheckedChanged(object sender, EventArgs e) { if (!PreloadSamplesNotSFCheck && PreloadSamplesNotSF.Checked) { MessageBox.Show(Languages.Parse("PreloadSamplesNotSFWarn"), String.Format("{0} {1} - {2}", Program.Who, Program.Title, Languages.Parse("Warning")), MessageBoxButtons.OK, MessageBoxIcon.Warning); PreloadSamplesNotSFCheck = true; } Properties.Settings.Default.PreloadSamplesNotSF = PreloadSamplesNotSF.Checked; Properties.Settings.Default.Save(); }
private void MainVol_Scroll(object sender, EventArgs e) { CH1VOL.Value = CH2VOL.Value = CH3VOL.Value = CH4VOL.Value = CH5VOL.Value = CH6VOL.Value = CH7VOL.Value = CH8VOL.Value = CH9VOL.Value = CH10VOL.Value = CH11VOL.Value = CH12VOL.Value = CH13VOL.Value = CH14VOL.Value = CH15VOL.Value = CH16VOL.Value = MainVol.Value; VolumeTip.SetToolTip(MainVol, String.Format("{0}: {1}%", Languages.Parse("ChannelsSettingsAll"), MainVol.Value)); for (int i = 0; i <= 15; i++) { MainWindow.KMCStatus.ChannelsVolume[i] = MainVol.Value; } }
private void AnalyzerProgress_Tick(object sender, EventArgs e) { try { AnalyzerProgressBar.Value = Convert.ToInt32(Math.Round((ValidFiles + InvalidFiles) * 100.0 / TotalFiles)); ParsingMIDIInfoStatus.Text = String.Format(Languages.Parse("ParsingMIDIInfoStatus"), (ValidFiles + InvalidFiles).ToString("N0", new CultureInfo("is-IS")), TotalFiles.ToString("N0", new CultureInfo("is-IS"))); } catch { } }
public static void ToAddOrNotToAdd(ListViewItem lvi, string notes, string str) { if (notes == "0" || GetMIDILength(str) == -1) { MessageBox.Show(String.Format(Languages.Parse("InvalidMIDIFile"), Path.GetFileName(str)), Languages.Parse("Error"), MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MainWindow.Delegate.MIDIList.Items.Add(lvi); } }
private string ReturnBASSAssemblyVersion(String FileVersion, Int32 FilePrivatePart) { if (FilePrivatePart < 1) { return(String.Format("{0}", FileVersion, FilePrivatePart)); } else { return(String.Format(Languages.Parse("RevisionLabel"), FileVersion, FilePrivatePart)); } }
public static void BASSCloseStreamCrash(Exception ex) { BASSException BASSException = new BASSException( String.Format("{0}\n\n{1}", Bass.BASS_ErrorGetCode().ToString(), ex.ToString()) ); MainWindow.Delegate.Invoke((MethodInvoker) delegate { new ErrorHandler(Languages.Parse("FatalError"), BASSException.ToString(), 1, 1).ShowDialog(); }); // Reset ReleaseResources(false, true); }
private void VolumeBar_Scroll(object sender, EventArgs e) { try { Properties.Settings.Default.Volume = (float)Convert.ToDouble((float)this.VolumeBar.Value / 10000.0f); Properties.Settings.Default.Save(); KMCDialogs.VolumeTip.SetToolTip(VolumeBar, String.Format("{0} {1}", Languages.Parse("Volume"), ((float)this.VolumeBar.Value / 100).ToString("000.00") + "%")); } catch (Exception exception) { ErrorHandler errordialog = new ErrorHandler(Languages.Parse("Error"), exception.ToString(), 0, 0); errordialog.ShowDialog(); } }
protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); if (WindowState.Equals(FormWindowState.Minimized) && Properties.Settings.Default.MinimizeToTray) { Hide(); if (Properties.Settings.Default.FirstTimeTray != false) { NotifyArea.ShowStatusTray(Languages.Parse("Information"), Languages.Parse("MinimizedToTray"), ToolTipIcon.Info); Properties.Settings.Default.FirstTimeTray = false; Properties.Settings.Default.Save(); } } }
private void InitializeLanguage() { Text = Languages.Parse("BankNPresetSelTitle"); BNPSelDesc.Text = Languages.Parse("BNPSelDesc"); BNPSelHelp.Text = Languages.Parse("BNPSelHelp"); BNPSelWiki.Text = Languages.Parse("BNPSelWiki"); ConfirmBtn.Text = Languages.Parse("ConfirmBtn"); CancelBtn.Text = Languages.Parse("CancelBtn"); SrcBankLabel.Text = Languages.Parse("SrcBank"); SrcPresetLabel.Text = Languages.Parse("SrcPreset"); DesBankLabel.Text = Languages.Parse("DesBank"); DesPresetLabel.Text = Languages.Parse("DesPreset"); }
// CheckDirectory, but it counts files instead private void CheckCount(String Target) { try { foreach (String folder in GetFiles(Target)) { TotalFiles++; } } catch (Exception exception) { ErrorHandler errordialog = new ErrorHandler(Languages.Parse("Error"), exception.ToString(), 0, 0); errordialog.ShowDialog(); Close(); } }
public static void InitializeLanguage() { Delegate.PreloadSFOfMIDI.Text = Languages.Parse("PreloadSFOfMIDI"); Delegate.PreloadSamplesNotSF.Text = Languages.Parse("PreloadSamplesNotSF"); Delegate.PreloadDefaultSF.Text = Languages.Parse("PreloadDefaultSF"); Delegate.VSTUse.Text = Languages.Parse("VSTUseText"); Delegate.VSTImport.Text = Languages.Parse("VSTManagerButtonText"); Delegate.label1.Text = Languages.Parse("SoundfontDialogMessage"); Delegate.importSoundfontsToolStripMenuItem.Text = Languages.Parse("ImportSoundfontBtn"); Delegate.removeSoundfontsToolStripMenuItem.Text = Languages.Parse("RemoveSoundfontBtn"); Delegate.clearSoundfontListToolStripMenuItem.Text = Languages.Parse("ClearSoundfontList"); Delegate.ImportBtn.Text = Languages.Parse("ImportSoundfontBtn"); Delegate.RemoveBtn.Text = Languages.Parse("RemoveSoundfontBtn"); Delegate.MvUp.Text = Languages.Parse("MoveUpSF"); Delegate.MvDwn.Text = Languages.Parse("MoveDownSF"); Delegate.Text = Languages.Parse("SoundfontManagerTitle"); }
private void InitializeLanguage(String errortitle) { Text = "Keppy's MIDI Converter - " + errortitle; if (TOE == 0) { ErrorLab.Text = Languages.Parse("NonFatalErrorHandler"); } else if (TOE == 1) { ErrorLab.Text = Languages.Parse("FatalErrorHandler"); } OKBtn.Text = Languages.Parse("OKBtn"); copyErrorMessageToolStripMenuItem.Text = Languages.Parse("CopyErrorMessage"); label1.Text = Languages.Parse("RightClickCopyNotice"); }
private void copyErrorMessageToolStripMenuItem_Click(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); sb.AppendLine("==== Start of Keppy's MIDI Converter Error ===="); foreach (string line in ErrorBox.Lines) { sb.AppendLine(line); } sb.AppendLine("==== End of Keppy's MIDI Converter Error ===="); Thread thread = new Thread(() => Clipboard.SetText(sb.ToString())); thread.SetApartmentState(ApartmentState.STA); thread.Start(); thread.Join(); MessageBox.Show(String.Format(Languages.Parse("CopiedToClipboardNotice"), sb.ToString()), "Notification", MessageBoxButtons.OK, MessageBoxIcon.Information); }
public static void InitializeLanguage() { Delegate.CHV1L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 1); Delegate.CHV2L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 2); Delegate.CHV3L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 3); Delegate.CHV4L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 4); Delegate.CHV5L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 5); Delegate.CHV6L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 6); Delegate.CHV7L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 7); Delegate.CHV8L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 8); Delegate.CHV9L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 9); Delegate.CHV10L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 10); Delegate.CHV11L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 11); Delegate.CHV12L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 12); Delegate.CHV13L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 13); Delegate.CHV14L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 14); Delegate.CHV15L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 15); Delegate.CHV16L.Text = String.Format(Languages.Parse("AdvancedVoicesChannel"), 16); }
public AdvancedSettings() { InitializeComponent(); Delegate = this; InitializeLanguage(); try { // W8 if (MainWindow.KMCStatus.IsKMCBusy == true && MainWindow.KMCStatus.RenderingMode == false) { AudioFreqLabel.Enabled = false; FrequencyBox.Enabled = false; Label6.Enabled = false; } else { AudioFreqLabel.Enabled = true; FrequencyBox.Enabled = true; Label6.Enabled = true; } // K DONE MaxVoices.Value = Properties.Settings.Default.Voices.LimitToRange(0, (Int32)MaxVoices.Maximum); OverrideTempoNow.Text = String.Format(Languages.Parse("OverrideTempo"), MainWindow.KMCGlobals.OriginalTempo.ToString()); FrequencyBox.Text = Convert.ToString(Properties.Settings.Default.AudioFreq); SincInter.Checked = Properties.Settings.Default.SincInter; BitrateBox.Text = Convert.ToString(Properties.Settings.Default.Bitrate); RTFPS.Value = Convert.ToDecimal(Properties.Settings.Default.RealTimeFPS); IgnoreNotes1.Checked = Properties.Settings.Default.IgnoreNotes1; LoVel.Value = Properties.Settings.Default.IgnoreNotesLow; HiVel.Value = Properties.Settings.Default.IgnoreNotesHigh; Limit88.Checked = Properties.Settings.Default.Limit88; Noteoff1.Checked = Properties.Settings.Default.NoteOff1; FXDisable.Checked = Properties.Settings.Default.DisableEffects; ConstantBitrate.Checked = Properties.Settings.Default.OverrideBitrate; TempoValue.Enabled = OverrideTempoNow.Checked = Properties.Settings.Default.OverrideTempo; // } catch (Exception ex) { ErrorHandler errordialog = new KeppyMIDIConverter.ErrorHandler(Languages.Parse("FatalError"), ex.ToString(), 1, 0); } }
private void AnalyzeMIDIs_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (InvalidFiles > 0 && !IgnoreInvalid) { MainWindow.Delegate.Invoke((MethodInvoker) delegate { AnalyzerProgress.Enabled = false; AnalyzerProgressBar.Value = 100; CancelBtn.Text = Languages.Parse("ConfirmBtn"); ParsingMIDIInfoStatus.Text = String.Format(Languages.Parse("ParsingMIDIInfoInvalidOutcome"), (ValidFiles + InvalidFiles).ToString("N0", new CultureInfo("is-IS")), ValidFiles.ToString("N0", new CultureInfo("is-IS")), InvalidFiles.ToString("N0", new CultureInfo("is-IS"))); }); } else { MainWindow.Delegate.Invoke((MethodInvoker) delegate { Close(); }); } }