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 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(); }
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(); }
public void Initialize( FaceXML XML ) { LoadXML( XML ); this.Height++; AllFacesControl.Focus(); }
public FaceForm( FaceXML XML ) { InitializeComponent(); Initialize( XML ); }
public void Initialize(FaceXML XML) { LoadXML(XML); this.Height++; AllFacesControl.Focus(); }
public FaceForm(FaceXML XML) { InitializeComponent(); Initialize(XML); }