Exemplo n.º 1
0
        /// <summary>
        /// 显示我的成绩,登陆的信息从customer类中获取
        /// </summary>
        private void showScore()
        {
            SqlEntity sqlEntity = new SqlEntity();

            if (sqlEntity.Cnt == null)
            {
                Form2 f2 = new Form2();
                f2.ShowDialog();
            }
            var myscore = new DataEntity();

            myscore.Con  = sqlEntity.Cnt;
            myscore      = DataEntity.GetByID(Customer.Userid);
            textBox.Text = myscore.show();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 显示教师评语
 /// </summary>
 private void showRemark()
 {
     textBox1.Text = DataEntity.GetByID(Customer.Userid).Remark;
 }