コード例 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            TrainDlg dlg = new TrainDlg("李智博", m_rootPath);

            dlg.m_faceBase = m_faceBase;
            dlg.Show();
        }
コード例 #2
0
        private void ShowTrainDlg(string trainPersonName)
        {
            panel1.Visible = false;
            panel2.Visible = true;
            panel2.Controls.Clear();
            m_trainDlg = new TrainDlg(trainPersonName, m_rootPath);

            panel2.Location = new Point(this.FRManager.Location.X + this.FRManager.Width, 28);
            Size size = new Size(this.Size.Width - panel2.Location.X - 20, this.Size.Height);

            panel2.Size = size;

            m_trainDlg.Size       = size;
            m_trainDlg.ControlBox = false;
            m_trainDlg.Text       = "";
            FaceBase faceBase = new FaceBase(trainPersonName, m_rootPath);

            m_trainDlg.m_faceBase  = faceBase;
            m_trainDlg.MdiParent   = this;
            m_trainDlg.Parent      = panel2;
            m_trainDlg.MaximumSize = size;
            m_trainDlg.MinimumSize = size;
            m_trainDlg.Show();
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: cJeek/homeServiceRobot
        private void ShowTrainDlg(string trainPersonName)
        {
            panel1.Visible=false;
            panel2.Visible = true;
            panel2.Controls.Clear();
            m_trainDlg = new TrainDlg(trainPersonName,m_rootPath);

            panel2.Location = new Point(this.FRManager.Location.X+this.FRManager.Width,28);
            Size size = new Size(this.Size.Width - panel2.Location.X - 20, this.Size.Height);
            panel2.Size = size;

            m_trainDlg.Size = size;
            m_trainDlg.ControlBox = false;
            m_trainDlg.Text = "";
            FaceBase faceBase = new FaceBase(trainPersonName,m_rootPath);
            m_trainDlg.m_faceBase = faceBase;
            m_trainDlg.MdiParent = this;
            m_trainDlg.Parent = panel2;
            m_trainDlg.MaximumSize = size;
            m_trainDlg.MinimumSize = size;
            m_trainDlg.Show();
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: cJeek/homeServiceRobot
 private void button3_Click(object sender, EventArgs e)
 {
     TrainDlg dlg = new TrainDlg("李智博",m_rootPath);
     dlg.m_faceBase = m_faceBase;
     dlg.Show();
 }