Пример #1
0
        public void LoadXML( FaceXML XML )
        {
            this.XML = XML;

            this.tabControl1.Controls.Clear();
            this.tabPage1.Controls.Clear();
            this.tabControl1.Controls.Add( tabPage1 );

            int width = tabPage1.Size.Width;
            int height = tabPage1.Size.Height;

            FaceImageListControl f = new FaceImageListControl( XML, this );
            f.Size = new Size( width, height );
            f.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            this.tabPage1.Controls.Add( f );

            AllFacesControl = f;
            FaceControls = new Dictionary<string, FaceImageListControl>();

            foreach ( KeyValuePair<String, List<FaceImage>> KVP in XML.Categories ) {
                TabPage p = new TabPage( KVP.Key );
                p.Size = new Size( width, height );
                f = new FaceImageListControl( KVP.Key, KVP.Value, AllFacesControl, this );
                f.Size = new Size( width, height );
                f.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
                p.Controls.Add( f );
                this.tabControl1.Controls.Add( p );

                FaceControls.Add( KVP.Key, f );
            }
        }
Пример #2
0
        public void LoadXML(FaceXML XML)
        {
            this.XML = XML;

            this.tabControl1.Controls.Clear();
            this.tabPage1.Controls.Clear();
            this.tabControl1.Controls.Add(tabPage1);

            int width  = tabPage1.Size.Width;
            int height = tabPage1.Size.Height;

            FaceImageListControl f = new FaceImageListControl(XML, this);

            f.Size   = new Size(width, height);
            f.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
            this.tabPage1.Controls.Add(f);

            AllFacesControl = f;
            FaceControls    = new Dictionary <string, FaceImageListControl>();

            foreach (KeyValuePair <String, List <FaceImage> > KVP in XML.Categories)
            {
                TabPage p = new TabPage(KVP.Key);
                p.Size   = new Size(width, height);
                f        = new FaceImageListControl(KVP.Key, KVP.Value, AllFacesControl, this);
                f.Size   = new Size(width, height);
                f.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
                p.Controls.Add(f);
                this.tabControl1.Controls.Add(p);

                FaceControls.Add(KVP.Key, f);
            }
        }
        public FaceImageListControl( FaceXML XML, FaceForm ParentForm )
        {
            InitializeComponent();

            this.Category = null;
            this.ImageList = null;
            this.XML = XML;
            this.AllControl = null;
            this.ParentFaceForm = ParentForm;
            FillViewFromXML();
        }
        public FaceImageListControl( String Category, List<FaceImage> ImageList, FaceImageListControl AllControl, FaceForm ParentForm )
        {
            InitializeComponent();

            this.Category = Category;
            this.ImageList = ImageList;
            this.XML = null;
            this.AllControl = AllControl;
            this.ParentFaceForm = ParentForm;
            FillViewFromList();
        }
Пример #5
0
        public FaceImageListControl(FaceXML XML, FaceForm ParentForm)
        {
            InitializeComponent();

            this.Category       = null;
            this.ImageList      = null;
            this.XML            = XML;
            this.AllControl     = null;
            this.ParentFaceForm = ParentForm;
            FillViewFromXML();
        }
Пример #6
0
        public FaceImageListControl(String Category, List <FaceImage> ImageList, FaceImageListControl AllControl, FaceForm ParentForm)
        {
            InitializeComponent();

            this.Category       = Category;
            this.ImageList      = ImageList;
            this.XML            = null;
            this.AllControl     = AllControl;
            this.ParentFaceForm = ParentForm;
            FillViewFromList();
        }
Пример #7
0
 public void Initialize( FaceXML XML )
 {
     LoadXML( XML );
     this.Height++;
     AllFacesControl.Focus();
 }
Пример #8
0
 public FaceForm( FaceXML XML )
 {
     InitializeComponent();
     Initialize( XML );
 }
Пример #9
0
 public void Initialize(FaceXML XML)
 {
     LoadXML(XML);
     this.Height++;
     AllFacesControl.Focus();
 }
Пример #10
0
 public FaceForm(FaceXML XML)
 {
     InitializeComponent();
     Initialize(XML);
 }