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); }
} //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); } } }
public CaptionsWindow AddCaptions() { CaptionsWindow w = (CaptionsWindow)AddWindow(CaptionsWindowFactory, newInstance: true); return(w); }