public bool Remove(PICClass c) { foreach (Control t in this.CameraPanel.Controls) { PICView v = t as PICView; if (v != null && v.PICClass.FileName.Equals(c.FileName)) { this.CameraPanel.Controls.Remove(v.Me); this.ShortcutRemove(v); break; } } return(true); }
public PICView Add(PICClass c) { if (c == null) { return(null); } PICView v = new PICView(c); v.ViewRatio = this.ViewRatio; v.VisibleChanged += new EventHandler(this.IView_VisibleChanged); this.CameraPanel.Controls.Add(v); this.ShortcutAdd(v); return(v); }
public PICView Add(PICClass c) { if (c == null) { return null; } PICView v = new PICView(c); v.ViewRatio = this.ViewRatio; v.VisibleChanged += new EventHandler(this.IView_VisibleChanged); this.CameraPanel.Controls.Add(v); this.ShortcutAdd(v); return v; }