Ejemplo n.º 1
0
        public CaptionsWindow AddRevoicing()
        {
            CaptionsWindow w = (CaptionsWindow)AddWindow(CaptionsWindowFactory, newInstance: true);

            w.View.Title = "Revoicing";
            w.CaptionsGridView.CaptionVisible = false;
            w.CaptionsGridView.AudioVisible   = true;
            w.View.Width = CaptionsGridDefaults.DefaultWidth_Revoicing;
            return(w);
        }
Ejemplo n.º 2
0
        } //TODO: check why it won't sync smoothly (see what was doing in LvS, maybe ignore time events that are very close to current time) //most probably need to ignore small time differences at sync

        private void BindCaptionsGridWindow(CaptionsWindow window)
        {
            if (window.View != null && View != null)
            {
                try
                {
                    //bind Time
                    BindingUtils.BindProperties(window.View, IViewProperties.PropertyTime,
                                                View, IViewProperties.PropertyTime); //TODO: should rebind after changing view if the window is inside a BaseWindow (get its View and bind to it)

                    //bind Captions (note: must do 2nd else freezes, not sure why - would expect the reverse order to be needed)
                    BindingUtils.BindProperties(window.View, ICaptionsGridProperties.PropertyCaptions,
                                                View, IActivityProperties.PropertyCaptions); //TODO: should rebind after changing view if the window is inside a BaseWindow (get its View and bind to it)
                }
                catch (Exception ex)
                {
                    ErrorDialog.Show("Failed to bind Captions component", ex);
                }
            }
        }
Ejemplo n.º 3
0
        public CaptionsWindow AddCaptions()
        {
            CaptionsWindow w = (CaptionsWindow)AddWindow(CaptionsWindowFactory, newInstance: true);

            return(w);
        }