internal void SelectedFrameTypeChanged(FrameType frameType) { TangraContext.Current.CanLoadDarkFrame = frameType == FrameType.MasterFlat; TangraContext.Current.CanLoadBiasFrame = frameType != FrameType.MasterBias && frameType != FrameType.Dark; m_VideoController.UpdateViews(); }
public bool InitializeOperation(IVideoController videoController, System.Windows.Forms.Panel controlPanel, Model.Video.IFramePlayer framePlayer, System.Windows.Forms.Form topForm) { m_VideoController = (VideoController)videoController; if (m_ControlPanel == null) { lock (m_SyncRoot) { if (m_ControlPanel == null) { m_ControlPanel = new ucConvertVideoToAav(this, (VideoController)videoController); } } } controlPanel.Controls.Clear(); controlPanel.Controls.Add(m_ControlPanel); m_ControlPanel.Dock = DockStyle.Fill; TangraContext.Current.CanPlayVideo = false; m_VideoController.UpdateViews(); m_Converting = false; return(true); }
public void SetCanPlayVideo(bool canPlayVideo) { TangraContext.Current.CanPlayVideo = canPlayVideo; m_VideoController.UpdateViews(); }
public bool InitializeOperation(IVideoController videoController, System.Windows.Forms.Panel controlPanel, Model.Video.IFramePlayer framePlayer, System.Windows.Forms.Form topForm) { m_VideoController = (VideoController)videoController; if (m_ControlPanel == null) { lock (m_SyncRoot) { if (m_ControlPanel == null) { m_ControlPanel = new ucConvertVideoToAav(this, (VideoController)videoController); } } } controlPanel.Controls.Clear(); controlPanel.Controls.Add(m_ControlPanel); m_ControlPanel.Dock = DockStyle.Fill; TangraContext.Current.CanPlayVideo = false; m_VideoController.UpdateViews(); m_Converting = false; return true; }