コード例 #1
0
        /**************************************************************************************************/
        private void height_Leave(object sender, EventArgs e)
        {
            String str         = "";
            int    totalInches = 0;

            if (feet.Text != "")
            {
                str         = str + feet.Text + "'";
                totalInches = totalInches + Int32.Parse(feet.Text) * 12;
            }
            if (inches.Text != "")
            {
                str         = str + inches.Text + "\"";
                totalInches = totalInches + Int32.Parse(inches.Text);
            }

            physicalExam.PhysicalExamination_heightInches     = totalInches.ToString();
            physicalExam.PhysicalExamination_heightFeetInches = str;

            HraModelChangedEventArgs args = new HraModelChangedEventArgs(this);

            args.updatedMembers.Add(physicalExam.GetMemberByName("heightInches"));
            args.updatedMembers.Add(physicalExam.GetMemberByName("heightFeetInches"));

            physicalExam.SignalModelChanged(args);
        }