private void radTextBox3_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode.ToString() == "F1") { Frm2 f = new Frm2(); this.SendData += new SendDataToForm2(f.getData); SendData(3);//3=اقدام کننده f.ShowDialog(); SendData = null; f.senddataGridToFrm1 += GetDataFromFrm2; } }
private void radTextBoxmMokhatabName_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode.ToString() == "F1") { Frm2 f = new Frm2(); this.SendData += new SendDataToForm2(f.getData); SendData(2);//2=مخاطب نامه f.ShowDialog(); SendData = null; f.senddataGridToFrm1 += GetDataFromFrm2; } }