예제 #1
0
파일: Main.cs 프로젝트: kevlens/kfsmanager
 private void ToolStripMenuItemPhotoUpdate_Click(object sender, EventArgs e)
 {
     string id = this.dataGridViewX1.CurrentRow.Cells[0].Value.ToString();
     common.photoid = id;
     common.photomode = "update";
     PhotoDetails md = new PhotoDetails();
     if (md.ShowDialog() == DialogResult.OK)
     {
         common.photoid = "";
         BindData();
     }
     else
     {
         common.photoid = "";
         BindData();
     }
 }
예제 #2
0
파일: Main.cs 프로젝트: kevlens/kfsmanager
 private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     string id = this.dataGridViewX1.CurrentRow.Cells[0].Value.ToString();
     common.photoid = id;
     PhotoDetails pd = new PhotoDetails();
     if (pd.ShowDialog() == DialogResult.OK)
     {
         common.photoid = "";
         BindData();
     }
     else
     {
         common.photoid = "";
         BindData();
     }
 }