示例#1
0
        private void toolStripButton_Add_Click(object sender, EventArgs e)
        {
            FrmUpSet add = new FrmUpSet();

            if (add.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadUpgrade();
            }
        }
示例#2
0
        private void toolStripButton_Detail_Click(object sender, EventArgs e)
        {
            if (dataGridView_Rate.CurrentRow == null)
            {
                Prompt.Warning("未选择记录");
                return;
            }
            FrmUpSet modify = new FrmUpSet();

            modify.FrmMode = FormMode.view;
            modify.UPID    = dataGridView_Rate.CurrentRow.Cells["ColUpID"].FormattedValue.ToString();

            modify.ShowDialog();
        }
示例#3
0
        private void toolStripButton_Modify_Click(object sender, EventArgs e)
        {
            if (dataGridView_Rate.CurrentRow == null)
            {
                Prompt.Warning("未选择记录");
                return;
            }
            FrmUpSet modify = new FrmUpSet();

            modify.FrmMode = FormMode.modify;
            modify.UPID    = dataGridView_Rate.CurrentRow.Cells["ColUpID"].FormattedValue.ToString();

            if (modify.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadUpgrade();
            }
        }