Exemple #1
0
        private void 批次修改主辦單位ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ServiceDataRow       sdr = (ServiceDataRow)dataGridViewX1.CurrentRow.DataBoundItem;
            ChangeOrganizersForm ctf = new ChangeOrganizersForm("主辦單位", sdr.Organizers);
            DialogResult         dr  = ctf.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.Yes)
            {
                foreach (DataGridViewRow row in dataGridViewX1.SelectedRows)
                {
                    sdr            = (ServiceDataRow)row.DataBoundItem;
                    sdr.Organizers = ctf.ChangeText;
                }
            }
        }
        private void 批次修改主辦單位ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ServiceDataRow sdr = (ServiceDataRow)dataGridViewX1.CurrentRow.DataBoundItem;
            ChangeOrganizersForm ctf = new ChangeOrganizersForm("主辦單位", sdr.Organizers);
            DialogResult dr = ctf.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.Yes)
            {
                foreach (DataGridViewRow row in dataGridViewX1.SelectedRows)
                {
                    sdr = (ServiceDataRow)row.DataBoundItem;
                    sdr.Organizers = ctf.ChangeText;
                }
            }
        }