Example #1
0
 private void 添加ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //string id = this.dataGridViewX2.CurrentRow.Cells[0].Value.ToString();
        // common.actorid = id;
     common.actormode = "add";
     ActorDetails md = new ActorDetails();
     if (md.ShowDialog() == DialogResult.OK)
     {
         common.actorid = "";
         BindData();
     }
     else
     {
         common.actorid = "";
         BindData();
     }
 }
Example #2
0
 private void dataGridViewX2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     string id = this.dataGridViewX2.CurrentRow.Cells[0].Value.ToString();
     //MessageBox.Show(id);
     common.actorid = id;
        // MessageBox.Show(common.actorid);
     ActorDetails ad = new ActorDetails();
     if (ad.ShowDialog() == DialogResult.OK)
     {
         common.actorid = "";
         BindData();
     }
     else
     {
         common.actorid = "";
         BindData();
     }
 }