private void ShowTrainSetDlg() { //panel2.SendToBack(); panel2.Visible = false; panel1.Visible = true; panel1.Controls.Clear(); // if (m_trainSetdlg==null) // { // m_trainSetdlg = new TrainSetDlg(); // } m_trainSetdlg = new TrainSetDlg(); panel1.Location = new Point(this.FRManager.Location.X + this.FRManager.Width, 28); Size size = new Size(this.Size.Width - panel1.Location.X - 20, this.Size.Height); panel1.Size = size; m_trainSetdlg.Size = size; m_trainSetdlg.ControlBox = false; m_trainSetdlg.Text = ""; m_trainSetdlg.m_faceBase = m_faceBase; m_trainSetdlg.MdiParent = this; m_trainSetdlg.Parent = panel1; m_trainSetdlg.m_faceBase = m_faceBase; m_trainSetdlg.MaximumSize = size; m_trainSetdlg.MinimumSize = size; m_trainSetdlg.Show(); }
private void 训练设置(object sender, EventArgs e) { TrainSetDlg dlg = new TrainSetDlg(); dlg.m_faceBase = m_faceBase; dlg.ShowDialog(this); if (dlg.selectedPerson != null && dlg.selectedPerson != "") { trainPerson = dlg.selectedPerson; } }
private void 训练设置(object sender, EventArgs e) { TrainSetDlg dlg = new TrainSetDlg(); dlg.m_faceBase=m_faceBase; dlg.ShowDialog(this); if (dlg.selectedPerson!=null&&dlg.selectedPerson!="") { trainPerson = dlg.selectedPerson; } }
private void ShowTrainSetDlg() { //panel2.SendToBack(); panel2.Visible = false; panel1.Visible = true; panel1.Controls.Clear(); m_trainSetdlg = new TrainSetDlg(); panel1.Location = new Point(this.FRManager.Location.X + this.FRManager.Width, 28); Size size = new Size(this.Size.Width - panel1.Location.X - 20, this.Size.Height); panel1.Size = size; m_trainSetdlg.Size = size; m_trainSetdlg.ControlBox = false; m_trainSetdlg.Text = ""; m_trainSetdlg.m_faceBase = m_faceBase; m_trainSetdlg.MdiParent = this; m_trainSetdlg.Parent = panel1; m_trainSetdlg.m_faceBase = m_faceBase; m_trainSetdlg.MaximumSize = size; m_trainSetdlg.MinimumSize = size; m_trainSetdlg.Show(); }