protected void OnVideoConverterToolActionActivated(object sender, System.EventArgs e) { int res; VideoConversionTool converter = new VideoConversionTool (); res = converter.Run (); converter.Destroy (); if (res == (int)ResponseType.Ok) { Config.EventsBroker.EmitConvertVideoFiles (converter.Files, converter.EncodingSettings); } }
protected void OnVideoConverterToolActionActivated (object sender, System.EventArgs e) { int res; VideoConversionTool converter = new VideoConversionTool (); res = converter.Run (); converter.Destroy (); if (res == (int)ResponseType.Ok) { ConversionJob job = new ConversionJob (converter.Files, converter.EncodingSettings); App.Current.JobsManager.Add (job); } }