static void Main(string[] args) { StartApp(); var list = GetListByArgs(args); var engine = new SubEngine(); foreach (var key in list.Keys) { try { var fileContent = engine.LoadSrtFile(key); engine.StripHtml(fileContent); engine.SaveFile(fileContent, list[key]); Console.WriteLine($"HTML tags were removed for {key}"); } catch (Exception ex) { Console.WriteLine($"Convert error for {key}"); Console.WriteLine(ex.Message); } } ExitApp(); }
private void btnSave_Click(object sender, EventArgs e) { engine.SaveFile(fileContent, tbTarget.Text); lblErrmsg.Text = "Saved"; }