第10次作业第十次_第1页
第10次作业第十次_第2页
第10次作业第十次_第3页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

usingusing ;usingSystem.Data;usingSystem.Drawing;usingusing ;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingusingnamespace{ usingTBook=Tuple<string,string,decimal,string, publicpartialclassForm1: public privatevoid der,EventArgs publicclass publicstringName{get;set; publicstringAuthor{get;set; publicdecimalPrice{get;set; publicDateTimePubData{get;set; privatevoid publicDateTimePubData{get;set; privatevoid der,EventArgs listView1.Columns.Add("书名 listView1.Columns.Add("作者 listView1.Columns.Add("定价 时间 TBook[]books=new books[0]newTBook"高数","华"29,"高教"newDateTime(2009,4,11) books[1]newTBook"c语言""谭"38,"清大",newDateTime books[2]newTBook"数理逻辑","陆"0,nullnewDateTime(2002,2, books[3]newTBook"技艺","Knuth",119,"人电",newDateTime books[4]newTBook"算法导论","Cormen",85,null,newDateTime foreach(TBookbookin ListViewItemitem= }publicstringPress{get;set;usingusing{publicpartialclassForm1:{privateStudent[]public{students=new((Graduate)students[1]).Department=((Graduate)students[1]).Tutor"王家强((Undergraduate)students[2]).Department=}}{privatevoidder,EventArgs}{privatevoidder,EventArgs}forusingusing{publicpartialclassForm1:{privateStudent[]public{students=new((Graduate)students[1]).Department=((Graduate)students[1]).Tutor"王家强((Undergraduate)students[2]).Department=}}{privatevoidder,EventArgs}{privatevoidder,EventArgs}fori=0;i<Student.Departments.Length;{privatevoidder,EventArgsstudents[2]=newUndergraduate("003",""女",1,students[1]=newGraduate("002",","男"students[0]=newStudent("001",","女namespaceusingusingusingusingusing ; privatevoid der,EventArgs for i=0;i<students.Length;i++) if privatevoid der,EventArgs for i=0;i<students.Length;i++) if(students[i].ID== MessageBox.Show("Noinformationrequared!","Warming",MessageBoxButtons.OK, privatevoidShowSudentInfo(Students)//我把public改为了private但不知道为什么 textBox2.Text= textBox3.Text= //textBox3.Texts.Gender;前面学到的是对类的对象的Tostring方法重载,能否将 textBox5.Text=s.Grade.HasValue?s.Grade.ToString(): textBox4.Text= if(sis comboBox1.Enabled= comboBox1.Text textBox7.Text= textBox7.Enabled= elseif(sis comboBox1.Enabled= comboBox1.Text= textBox7.Enabled= textBox7.Text=privatevoidder,EventArgs}{comboBox1.Enabled=comboBox1.Text=textBox7.Text=textBox7.Enabled=}}{if(students[i].ID=={}}}publicvoidSaveStudentInfo(Student{fori=0;i<students.Length;{privatevoidder,EventArgs}{privatevoidder,EventArgs}{privatevoid}{comboBox1.Enabled=comboBox1.Text=textBox7.Text=textBox7.Enabled=}}{if(students[i].ID=={}}}publicvoidSaveStudentInfo(Student{fori=0;i<students.Length;{privatevoidder,EventArgs}{privatevoidder,EventArgs}{privatevoidder,EventArgs}{privatevoidder,EventArgs}{privatevoidder,EventArgs s.Gender= s.Grade .TryParse(textBox5.Text,outi)?i: s.Class .TryParse(textBox4.Text, s.Gender= s.Grade .TryParse(textBox5.Text,outi)?i: s.Class .TryParse(textBox4.Text,outi)?i: if(sis ((Undergraduate)s).Department=comboBox1.SelectedIndex>=0? .SelectedIndex: elseif(si

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论