//get the available system voices and add them to the dropdown list public void GetSystemVoices() { SystemVoicesMenu.RemoveAllItems(); foreach (var voice in SpeechSynthesizer.SystemVoices) { SystemVoicesMenu.AddItem(voice.Name); } SystemVoicesMenu.SelectItem(0); }
void ReleaseDesignerOutlets() { if (IsDottedCheck != null) { IsDottedCheck.Dispose(); IsDottedCheck = null; } if (IsTripletCheck != null) { IsTripletCheck.Dispose(); IsTripletCheck = null; } if (LengthMenu != null) { LengthMenu.Dispose(); LengthMenu = null; } if (NoteMenu != null) { NoteMenu.Dispose(); NoteMenu = null; } if (OctaveMenu != null) { OctaveMenu.Dispose(); OctaveMenu = null; } if (OutputTextView != null) { OutputTextView.Dispose(); OutputTextView = null; } if (SystemVoicesMenu != null) { SystemVoicesMenu.Dispose(); SystemVoicesMenu = null; } if (TempoField != null) { TempoField.Dispose(); TempoField = null; } }