首页 > 代码库 > 编码类

编码类

技术分享
 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 using System.Windows.Forms;
 7 
 8 namespace WindowsFormsApplication2
 9 {
10 
11     /// <summary>
12     /// 编码
13     /// </summary>
14    public class CodeJob:Abctract
15     {
16         public CodeJob(string type ,string name, string desc):base(type,name,desc) 
17        {
18         
19        }
20         //public CodeJob() { }
21        //有效编码
22         public int CodingLines { get; set; }
23        //目前没有编码Bug
24         public int Bugs { get; set; }
25        //工作日
26         public int  WorkDay{ get; set; }
27 
28         public override void Execcute(Form1 f,int index)
29         {
30             Form3  q = new Form3();
31             q.fr = f;
32             q.index = index;
33             q.ShowDialog();
34         }
35         public override void show()
36         {
37             StringBuilder s = new StringBuilder();
38             s.AppendLine("有效的编码行数:" + this.CodingLines);
39             s.AppendLine("遗留问题:" + this.Bugs);
40             s.AppendLine("工作日:" + this.WorkDay);
41             MessageBox.Show(s.ToString());
42         }
43     }
44 }
View Code

 

编码类