protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); string path = TTSWord.GetBaseDirectory(); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } }
public TTSWord(String word, int type) { Word = word; Type = type; AudioFileName = Path.Combine(TTSWord.GetBaseDirectory(), String.Format("{0}_{1}.mp3", this.Word, this.TypeDesc)); }