首页 > 其他 > 详细

测试窗口

时间:2017-04-12 23:09:28      阅读:200      评论:0      收藏:0      [点我收藏+]
技术分享
 1 using System;
 2 using System.Collections.Generic;
 3 using System.ComponentModel;
 4 using System.Data;
 5 using System.Drawing;
 6 using System.Linq;
 7 using System.Text;
 8 using System.Threading.Tasks;
 9 using System.Windows.Forms;
10 
11 namespace WindowsFormsApplication2
12 {
13     public partial class Form3 : Form
14     {
15         public Form3()
16         {
17             InitializeComponent();
18         }
19         //接收主窗口
20         public Form1 fr;
21         public int index;
22 
23         private void button1_Click(object sender, EventArgs e)
24         {
25             //把父类转化为子类
26             var test = (CodeJob)(fr.la[index]);
27             test.CodingLines = int.Parse(textBox1.Text.Trim());
28             test.Bugs = int.Parse(textBox2.Text.Trim());
29             test.WorkDay = int.Parse(textBox3.Text.Trim());
30         }
31     }
32 }
View Code

 

测试窗口

原文:http://www.cnblogs.com/nancheng/p/6701723.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!