Ejemplo n.º 1
0
 private void export_Click(object sender, EventArgs e)
 {
     try
     {
         using (var dlg = new SaveFileDialog())
         {
             dlg.Filter     = "Zip Files | *.zip";
             dlg.DefaultExt = "zip";
             if (dlg.ShowDialog(this) == DialogResult.OK)
             {
                 string path = dlg.FileName;
                 if (!string.IsNullOrEmpty(path))
                 {
                     using (var file = File.Create(path))
                     {
                         muxer.ExportConfiguration(file);
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Log(ex.Message);
     }
 }