コード例 #1
0
 private void txt_TEAM_CODE_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         popup = new InputPopup_WorkCenter(txt_PLANT_CODE.Text, txt_WC_CODE.Text, txt_TEAM_CODE.Text);
         popup.FormSendEvent += new InputPopup_WorkCenter.FormSendDataHandler(DieaseUpdateEventMethod);
         popup.ShowDialog();
     }
 }
コード例 #2
0
        private void grd_Data_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int i_RowIndex = grd_Result.CurrentRow.Index;

            List <string> list = new List <string>();

            foreach (DataGridViewCell item in grd_Result.Rows[i_RowIndex].Cells)
            {
                list.Add(item.Value.ToString());
            }

            popup = new InputPopup_WorkCenter(list);
            popup.FormSendEvent += new InputPopup_WorkCenter.FormSendDataHandler(DieaseUpdateEventMethod);
            popup.ShowDialog();

            /*txt_ID.Text = grd_Result.Rows[rowIndex].Cells[0].Value.ToString();
             * txt_Name.Text = grd_Result.Rows[rowIndex].Cells[1].Value.ToString();
             * txt_Path.Text = grd_Result.Rows[rowIndex].Cells[2].Value.ToString();
             * txt_Version.Text = grd_Result.Rows[rowIndex].Cells[3].Value.ToString();
             * txt_Class.Text = grd_Result.Rows[rowIndex].Cells[4].Value.ToString();*/
        }