Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            m_iniFileName = System.Environment.CurrentDirectory + @"\Config.ini";
            string def = "def";

            m_rootPath = ReadIni("BASE", "RootPath", def);
            if (m_rootPath != def)
            {
                m_faceBase = new FaceBase(m_rootPath, true);
            }


            InitDataBase();

            InitFRManager();

            InitSRManager();

            InitSerialPort();

            ShowTrainSetDlg();

            //改变列表框的显示位置
            int width  = listBox_showSRData.Size.Width;
            int height = this.ClientRectangle.Size.Height - listBox_showSRData.Location.Y - 25;

            listBox_showSRData.Size = new Size(width, height);
        }
Example #2
0
 private void TrainDlg_Load(object sender, EventArgs e)
 {
     m_faceBase = new FaceBase(m_name, m_rootPath);
     m_faceBase.GetTrainPersonImagesInfo(out m_personImagesInfo);
     FillImageList();
     GetRectImageList();
     SetPicLayout();
 }
 private void TrainDlg_Load(object sender, EventArgs e)
 {
     m_faceBase =new FaceBase(m_name,m_rootPath);
     m_faceBase.GetTrainPersonImagesInfo(out m_personImagesInfo);
     FillImageList();
     GetRectImageList();
     SetPicLayout();
 }
Example #4
0
 public void ReLoad(string trainPersonName)
 {
     m_name = trainPersonName;
     m_faceBase = new FaceBase(m_name);
     m_faceBase.GetTrainPersonImagesInfo(out m_personImagesInfo);
     FillImageList();
     GetRectImageList();
     SetPicLayout();
 }
Example #5
0
 public void ReLoad(string trainPersonName)
 {
     m_name     = trainPersonName;
     m_faceBase = new FaceBase(m_name);
     m_faceBase.GetTrainPersonImagesInfo(out m_personImagesInfo);
     FillImageList();
     GetRectImageList();
     SetPicLayout();
 }
Example #6
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();
        }
Example #7
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();
        }
Example #8
0
        private void Form1_Load(object sender, EventArgs e)
        {
            m_iniFileName =  System.Environment.CurrentDirectory+@"\Config.ini";
            string def="def";
            m_rootPath = ReadIni("BASE","RootPath",def);
            if (m_rootPath!=def)
            {
                m_faceBase = new FaceBase(m_rootPath,true);
            }

            InitDataBase();

            InitFRManager();

            InitSRManager();

            InitSerialPort();

            ShowTrainSetDlg();

            //改变列表框的显示位置
            int width = listBox_showSRData.Size.Width;
            int height = this.ClientRectangle.Size.Height - listBox_showSRData.Location.Y - 25;
            listBox_showSRData.Size = new Size(width, height);
        }