Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     engine.SaveFile(fileContent, tbTarget.Text);
     lblErrmsg.Text = "Saved";
 }