예제 #1
0
파일: Program.cs 프로젝트: erwinmnl/Tools
        /// <summary>
        /// Transcodings the changed handler.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="CasparCG.Conformer.Core.Events.TranscodingChangedEventArgs"/> instance containing the event data.</param>
        private static void TranscodingChangedHandler(object sender, TranscodingChangedEventArgs e)
        {
            Console.Clear();

            lock (e.Items)
            {
                if (e.Items.Count == 0)
                    Console.WriteLine("Waiting for work...");

                foreach (var item in e.Items)
                {
                    Console.Write("{0}", item.Key);

                    if (item.Value == "Waiting")
                        Console.ForegroundColor = ConsoleColor.Magenta;
                    else
                        Console.ForegroundColor = ConsoleColor.Yellow;

                    Console.WriteLine(" {0}", item.Value);
                    Console.ForegroundColor = ConsoleColor.White;
                }
            }
        }
예제 #2
0
 /// <summary>
 /// Fires the transcoding changed event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="CasparCG.Conformer.Core.Events.TranscodingChangedEventArgs"/> instance containing the event data.</param>
 public void FireTranscodingChangedEvent(object sender, TranscodingChangedEventArgs e)
 {
     TranscodingChanged(sender, e);
 }