コード例 #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);
        }
コード例 #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();
 }
コード例 #3
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();
 }
コード例 #4
0
ファイル: TrainDlg.cs プロジェクト: cJeek/homeServiceRobot
 public void ReLoad(string trainPersonName)
 {
     m_name = trainPersonName;
     m_faceBase = new FaceBase(m_name);
     m_faceBase.GetTrainPersonImagesInfo(out m_personImagesInfo);
     FillImageList();
     GetRectImageList();
     SetPicLayout();
 }
コード例 #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();
 }
コード例 #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();
        }
コード例 #7
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();
        }
コード例 #8
0
ファイル: MainForm.cs プロジェクト: cJeek/homeServiceRobot
        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);
        }