清理无用代码
This commit is contained in:
+17
-17
@@ -27,7 +27,7 @@ namespace LargeSquareOne
|
||||
#endregion
|
||||
|
||||
|
||||
private int subgroupSize =5;
|
||||
private int subgroupSize = 5;
|
||||
[Browsable(true)]
|
||||
[Category("自定义属性")]
|
||||
[Description("设置或获取子组大小值")]
|
||||
@@ -86,9 +86,9 @@ namespace LargeSquareOne
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private CPKModel _cPKData=new CPKModel();
|
||||
|
||||
private CPKModel _cPKData = new CPKModel();
|
||||
[Browsable(true)]
|
||||
[Category("自定义属性")]
|
||||
[Description("获取目标值")]
|
||||
@@ -97,7 +97,7 @@ namespace LargeSquareOne
|
||||
get { return _cPKData; }
|
||||
set
|
||||
{
|
||||
if (value!=null)
|
||||
if (value != null)
|
||||
{
|
||||
_cPKData = value;
|
||||
//总样本数
|
||||
@@ -114,7 +114,7 @@ namespace LargeSquareOne
|
||||
listView1.Items[3].SubItems[3].Text = _cPKData.Neg3Sigma.ToString();
|
||||
|
||||
// 组内标准差值
|
||||
listView2.Items[0].SubItems[1].Text= _cPKData.GroupSTDEV.ToString();
|
||||
listView2.Items[0].SubItems[1].Text = _cPKData.GroupSTDEV.ToString();
|
||||
// 整体标准差值
|
||||
listView2.Items[0].SubItems[2].Text = _cPKData.WholeSTDEV.ToString();
|
||||
|
||||
@@ -151,10 +151,10 @@ namespace LargeSquareOne
|
||||
// 整体PPMN Total值
|
||||
listView2.Items[7].SubItems[2].Text = _cPKData.WholePPM_Total.ToString();
|
||||
|
||||
lbl_Ca.Text= _cPKData.CA.ToString();
|
||||
lbl_Ca.Text = _cPKData.CA.ToString();
|
||||
this.Invalidate();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,15 +172,15 @@ namespace LargeSquareOne
|
||||
|
||||
// 假设ListView控件的名称为listView1
|
||||
// 添加列头
|
||||
listView1.Columns.Add("项目1",80);
|
||||
listView1.Columns.Add("数值1",90);
|
||||
listView1.Columns.Add("项目2",80);
|
||||
listView1.Columns.Add("项目1", 80);
|
||||
listView1.Columns.Add("数值1", 90);
|
||||
listView1.Columns.Add("项目2", 80);
|
||||
listView1.Columns.Add("数值2", 90);
|
||||
listView1.Columns.Add("项目3", 80);
|
||||
listView1.Columns.Add("数值3", 95);
|
||||
|
||||
// 创建一个ListViewItem对象,并将数据添加到指定单元格 0
|
||||
ListViewItem item1_1 = new ListViewItem("总样本数");
|
||||
ListViewItem item1_1 = new ListViewItem("总样本数");
|
||||
item1_1.SubItems.Add("0");
|
||||
item1_1.SubItems.Add("子组大小");
|
||||
item1_1.SubItems.Add("0");
|
||||
@@ -233,32 +233,32 @@ namespace LargeSquareOne
|
||||
item2_2.SubItems.Add("0");
|
||||
item2_2.SubItems.Add("0");
|
||||
item2_2.SubItems.Add("");
|
||||
listView2.Items.Add(item2_2);
|
||||
listView2.Items.Add(item2_2);
|
||||
ListViewItem item2_3 = new ListViewItem("CP");//2
|
||||
item2_3.SubItems.Add("0");
|
||||
item2_3.SubItems.Add("0");
|
||||
item2_3.SubItems.Add("");
|
||||
listView2.Items.Add(item2_3);
|
||||
listView2.Items.Add(item2_3);
|
||||
ListViewItem item2_4 = new ListViewItem("CPL");//3
|
||||
item2_4.SubItems.Add("0");
|
||||
item2_4.SubItems.Add("0");
|
||||
item2_4.SubItems.Add("");
|
||||
listView2.Items.Add(item2_4);
|
||||
listView2.Items.Add(item2_4);
|
||||
ListViewItem item2_5 = new ListViewItem("CPU");//4
|
||||
item2_5.SubItems.Add("0");
|
||||
item2_5.SubItems.Add("0");
|
||||
item2_5.SubItems.Add("");
|
||||
listView2.Items.Add(item2_5);
|
||||
listView2.Items.Add(item2_5);
|
||||
ListViewItem item2_6 = new ListViewItem("PPM<LSL");//5
|
||||
item2_6.SubItems.Add("0");
|
||||
item2_6.SubItems.Add("0");
|
||||
item2_6.SubItems.Add("0");
|
||||
listView2.Items.Add(item2_6);
|
||||
listView2.Items.Add(item2_6);
|
||||
ListViewItem item2_7 = new ListViewItem("PPM>USL");//6
|
||||
item2_7.SubItems.Add("0");
|
||||
item2_7.SubItems.Add("0");
|
||||
item2_7.SubItems.Add("0");
|
||||
listView2.Items.Add(item2_7);
|
||||
listView2.Items.Add(item2_7);
|
||||
ListViewItem item2_8 = new ListViewItem("PPM Total");//7
|
||||
item2_8.SubItems.Add("0");
|
||||
item2_8.SubItems.Add("0");
|
||||
|
||||
Reference in New Issue
Block a user