Example #1
0
        //导入奖励表
        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;
        }
Example #2
0
        private void TenRollForm_Load(object sender, EventArgs e)
        {
            TenRollSettings trs = new TenRollSettings();

            propertyGrid1.SelectedObject = trs;
        }
Example #3
0
        //重置刷新界面
        private void button4_Click(object sender, EventArgs e)
        {
            TenRollSettings trs = new TenRollSettings();

            propertyGrid1.SelectedObject = trs;
        }