Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UDT.EventTemplates addEventtemplates = null;

            frmSetEventTemplate addFrom = new frmSetEventTemplate();

            addFrom.SetEventTemplates(addEventtemplates);
            addFrom.SetIsAdd(true);
            addFrom.setScoreTypesList(_ScoreTypesList);
            if (addFrom.ShowDialog() == DialogResult.OK)
            {
                // 資料重整
                _bgwLoadData.RunWorkerAsync();
            }
        }
Example #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (dgData.SelectedRows.Count == 0)
            {
                FISCA.Presentation.Controls.MsgBox.Show("請選擇項目");
            }
            else
            {
                UDT.EventTemplates selectEventTemplates = dgData.SelectedRows[0].Tag as UDT.EventTemplates;

                frmSetEventTemplate editFrom = new frmSetEventTemplate();
                editFrom.SetIsAdd(false);
                editFrom.SetEventTemplates(selectEventTemplates);
                editFrom.setScoreTypesList(_ScoreTypesList);

                if (editFrom.ShowDialog() == DialogResult.OK)
                {
                    // 資料重整
                    _bgwLoadData.RunWorkerAsync();
                }
            }
        }