public static WpfTraceListener CreateModelTrace(Model model)
        {
            var buf = new WpfTraceListener();

            model.Trace.Listeners.Add(buf);
            return(buf);
        }
        /// <summary>
        /// Synced!
        /// </summary>
        /// <param name="model">The model.</param>
        private static void showModelTrace(object model)
        {
            var mdl = model as Model;
            var wnd = new WpfTraceListener();

            mdl.Trace.Listeners.Add(wnd);
            wnd.Show();
        }