internal static void ReconnectDisplay(MonitorView monitorView) { if (!monitorView.IsDisplayConnected) { monitorView.ConnectDisplay(); } if (!monitorView.IsClientConnected) { monitorView.ConnectClient(); } }
public MonitorViewTab(CameraConfig leftConfig, CameraConfig rightConfig, bool isAdmin) { InitializeComponent(); this.leftType = leftConfig.CurrentCameraType; this.rightType = rightConfig.CurrentCameraType; this.isAdmin = isAdmin; string leftName = leftConfig.CameraName; string rightName = rightConfig.CameraName; this.Text = leftName + "和" + rightName; leftBtn.Text = leftName + "调试界面"; rightBtn.Text = rightName + "调试界面"; leftMonitorView = new MonitorView(leftConfig); rightMonitorView = new MonitorView(rightConfig); }
internal static bool CheckConnect(MonitorView monitorView, Panel panel) { if (monitorView.IsDisplayConnected) { panel.BackColor = Color.Aqua; panel.Enabled = true; panel.BorderStyle = BorderStyle.Fixed3D; return(true); } else { panel.BackColor = Color.LightGray; panel.Enabled = false; panel.BorderStyle = BorderStyle.None; //monitorView.InitCvsInSight(); return(false); } }