//导入奖励表 private void button2_Click(object sender, EventArgs e) { if (eo.ws == null) { MessageBox.Show("请先打开excel。"); return; } TenRollSettings trs = (TenRollSettings)propertyGrid1.SelectedObject; List <AwardList> al = eo.TenRollStatementSort(eo.ws); trs.tAwardList.Clear(); for (int i = al.Count - 1; i >= 0; i--) { trs.tAwardList.Add(al[i]); } propertyGrid1.SelectedObject = trs; }
private void TenRollForm_Load(object sender, EventArgs e) { TenRollSettings trs = new TenRollSettings(); propertyGrid1.SelectedObject = trs; }
//重置刷新界面 private void button4_Click(object sender, EventArgs e) { TenRollSettings trs = new TenRollSettings(); propertyGrid1.SelectedObject = trs; }