private void txt_WC_CODE_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { popup = new InputPopup_Employee(txt_SA_SABUN.Text, txt_DEPT_NEW.Text); popup.FormSendEvent += new InputPopup_Employee.FormSendDataHandler(DieaseUpdateEventMethod); popup.ShowDialog(); } }
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_Employee(list); popup.FormSendEvent += new InputPopup_Employee.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();*/ }
private void metroTile1_Click(object sender, EventArgs e) { popup = new InputPopup_Employee(); popup.FormSendEvent += new InputPopup_Employee.FormSendDataHandler(DieaseUpdateEventMethod); popup.ShowDialog(); }