


版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年三月份装修半包合同踢脚线施工验收标准
- 二零二四年7月空间采矿项目资金链风险智能预警模型
- 2024年份8月冷库租赁合同中食材存储温度约束条款
- 湖南省名校联考联合体2024-2025学年高二下学期第二次联考政治试题(原卷版+解析版)
- “节能宣传周”活动总结
- 个人编辑年度工作总结
- 保安部年终工作总结
- 所有不动产赠与合同
- 企业经营合同
- 聘请外教合同
- 2024-2025学年人教版数学八年级下册第一次月考模拟练习(含答案)
- 浙江省杭州市五县七校2025年下学期高三第一次月考数学试题含解析
- 2025届河北省承德市、张家口市高三下学期一模考试英语试题(含答案)
- 2025年三峡旅游职业技术学院单招职业技能测试题库必考题
- Unit+4+Eat+Well+Section+A+2a~2e课件-2024-2025学年人教版(2024)英语七年级下册+
- 2025年主提升机司机试题及答案
- 全国行政区域身份证代码表(电子表格版)
- 《电气安全规范》课件
- 2024年滁州来安农商银行社会招聘笔试真题
- 电厂检修安全培训
- 孤岛交直流混合微电网群分布式低碳控制策略
评论
0/150
提交评论