コード例 #1
0
        private void Form_PatientInfo_Load(object sender, EventArgs e)
        {
            LanguageMngr lang = new LanguageMngr();

            //初始化语言
            #region
            this.Text                   = lang.patient_info();
            this.label_name.Text        = lang.name();
            this.label_age.Text         = lang.age();
            this.label_gender.Text      = lang.gender();
            this.radioButton_male.Text  = lang.male();
            this.radioButton_femal.Text = lang.female();
            this.label_height.Text      = lang.height();
            this.label_weight.Text      = lang.weight();
            this.label_phoneNum.Text    = lang.phoneNum();
            this.label_address.Text     = lang.address();
            this.button_ok.Text         = lang.ok();
            this.button_cancle.Text     = lang.cancle();
            #endregion

            this.textBox_name.Text     = DataMngr.m_old_PatientInfo.name;
            this.textBox_age.Text      = DataMngr.m_old_PatientInfo.age;
            this.textBox_height.Text   = DataMngr.m_old_PatientInfo.height;
            this.textBox_weight.Text   = DataMngr.m_old_PatientInfo.weight;
            this.textBox_phoneNum.Text = DataMngr.m_old_PatientInfo.phoneNum;
            this.textBox_adress.Text   = DataMngr.m_old_PatientInfo.adress;
            if (DataMngr.m_old_PatientInfo.gender == "女")
            {
                this.radioButton_femal.Checked = true;
            }
            else
            {
                this.radioButton_male.Checked = true;
            }
            this.StartPosition = FormStartPosition.CenterScreen;
        }