Пример #1
0
 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);
     }
 }
Пример #2
0
		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);
			}
		}