상속: System.Windows.Forms.UserControl, IView, IFileView, IGlobalization
예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
 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;
 }