private void viewbutton_Click(object sender, EventArgs e)
 {
     stuinfo = new ustuinfo();
     stuinfo.StartPosition = FormStartPosition.Manual;
     stuinfo.Location      = new Point(345, 38);
     stuinfo.Disabled();
     stuinfo.ButtonDisable();
     stuinfo.Show();
     stuinfo.TextBoxValue = this.GetStudentNo();
 }
示例#2
0
 private void stuinfolbl_Click(object sender, EventArgs e)
 {
     if (stuinfo == null)
     {
         stuinfo             = new ustuinfo();
         stuinfo.MdiParent   = this;
         stuinfo.FormClosed += Stuinfo_FormClosed;
         stuinfo.Show();
     }
     else
     {
         stuinfo.Activate();
     }
 }
示例#3
0
 private void Stuinfo_FormClosed(object sender, FormClosedEventArgs e)
 {
     stuinfo = null;
     //throw new NotImplementedException();
 }