コード例 #1
0
 private void txt_TEAM_CODE_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         popup = new InputPopup_ProductMaster(txt_PROD_CODE.Text, txt_PLANT_CODE.Text, txt_MRP_MGR.Text);
         popup.FormSendEvent += new InputPopup_ProductMaster.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_ProductMaster(list);
            popup.FormSendEvent += new InputPopup_ProductMaster.FormSendDataHandler(DieaseUpdateEventMethod);
            popup.ShowDialog();
        }
コード例 #3
0
        private void grd_Data_KeyUp(object sender, KeyEventArgs 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_ProductMaster(list);
            popup.FormSendEvent += new InputPopup_ProductMaster.FormSendDataHandler(DieaseUpdateEventMethod);
            popup.ShowDialog();

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