public IVideoView Add(CameraClass c) { IVideoView v; if (c == null) { return(null); } v = this.Find(c); if (v == null) { if (this.AtTheEdge() == true) { return(null); } CameraView x = new CameraView(); x.CameraClass = c; this.CameraPanel.Controls.Add(x); x.ViewRatio = this.ViewRatio; x.VisibleChanged += new EventHandler(this.IView_VisibleChanged); CameraBoardAddNewEventArgs e = new CameraBoardAddNewEventArgs(x); this.OnCameraBoardAddNewEvent(e); e = null; v = x; this.ShortcutAdd(v); } else { v.ViewRatio = this.ViewRatio; v.Me.Visible = true; } this.ScrollToView(v.CameraClass.ID); return(v); }
public ExtendedLogViewerItem(ZForge.Controls.Logs.LogLevel level, CameraView view, string msg) { this.mLogLevel = level; this.mCameraID = view.CameraClass.ID; this.mCameraName = view.CameraClass.Name; this.mMsg = msg; this.mLogTime = DateTime.Now.ToLocalTime(); }
public void Add(ZForge.Controls.Logs.LogLevel level, CameraView view, string msg) { ExtendedLogViewerItem i = new ExtendedLogViewerItem(level, view, msg); this.mMutex.WaitOne(); this.mLogs.Add(i); this.mMutex.ReleaseMutex(); }
public void AlarmResetAll() { this.Cursor = Cursors.WaitCursor; foreach (Control t in this.CameraPanel.Controls) { if (t is CameraView) { CameraView v = (CameraView)t; v.AlarmCount = 0; } } this.Cursor = Cursors.Default; }
public CameraViewCaptureEventArgs(CameraView v) : base(v) { this.time = DateTime.Now; }
public CameraViewBeforeStartEventArgs(int status, CameraView v) : base(status, v) { this.cancel = false; }
public CameraViewAlarmCountChangedEventArgs(int c, CameraView v) : base(v) { this.alarmCount = c; }
public CameraViewStatusChangedEventArgs(int status, CameraView v) : base(v) { this.status = status; }
public CameraViewLogEventArgs(ZForge.Controls.Logs.LogLevel loglevel, string msg, CameraView v) : base(v) { this.loglevel = loglevel; this.msg = msg; }
public IVideoView Add(CameraClass c) { IVideoView v; if (c == null) { return null; } v = this.Find(c); if (v == null) { if (this.AtTheEdge() == true) { return null; } CameraView x = new CameraView(); x.CameraClass = c; this.CameraPanel.Controls.Add(x); x.ViewRatio = this.ViewRatio; x.VisibleChanged += new EventHandler(this.IView_VisibleChanged); CameraBoardAddNewEventArgs e = new CameraBoardAddNewEventArgs(x); this.OnCameraBoardAddNewEvent(e); e = null; v = x; this.ShortcutAdd(v); } else { v.ViewRatio = this.ViewRatio; v.Me.Visible = true; } this.ScrollToView(v.CameraClass.ID); return v; }
public CameraViewEventArgs(CameraView v) { this.v = v; }