private void textBox_KeyDown(object sender, KeyEventArgs e) { TextBox tb = ( TextBox )sender; //if( e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab ) //{ //} if ((e.Modifiers & Keys.Control) != Keys.Control) { return; // Ctrlキーが押下された時のみ以下処理 } if (e.KeyCode == Keys.A) { switch (tb.Name) { case "textBoxSubCo": PartnersScData psds = FormSubComList.ReceiveItems(psd); if (psds == null) { return; } textBoxSubCo.Text = psds.PartnerName; labelSubCoCode.Text = psds.PartnerCode; break; default: break; } } }
private void choosePartnerData() { PartnersScData psds = FormSubComList.ReceiveItems(psd); if (psds == null) { return; } textBoxPartner.Text = psds.PartnerName; }
// 取引先マスタ外注データをFormSubComList画面から得る private void choosePartnersScData(DataGridViewRow dgvRow) { PartnersScData psds = FormSubComList.ReceiveItems(psd); if (psds == null) { return; } dgvRow.Cells["CoCompany"].Value = psds.PartnerName; ListFormDataOp lo = new ListFormDataOp(); string editPartnerName = psds.PartnerName; cmd = lo.SelectCostData(Conv.OfficeCode, "CostCode", "F", editPartnerName.RemoveCorpForm()); }
private void returnValue(DataGridView dgv) { psds = (PartnersScData)psd[dgv.CurrentCellAddress.Y].Clone(); this.Close(); }