Наследование: 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;
 }