コード例 #1
0
 private void cmdThem_Click(object sender, RoutedEventArgs e)
 {
    // this.DialogResult = true;
     frmnhapap frm = new frmnhapap(false, cmbxa.GetKeyValue(cmbxa.SelectedIndex).ToString().Trim());
     frm.txtghichu.Text = cmbxa.Text;
     this.DialogResult = false;
     frm.Show();
 }
コード例 #2
0
 private void tableView1_RowDoubleClick(object sender, DevExpress.Xpf.Grid.RowDoubleClickEventArgs e)
 {
     frmnhapap frm = new frmnhapap(true, cmbxa.GetKeyValue(cmbxa.SelectedIndex).ToString().Trim());
     frm.txtmaap.Text = gridControl1.GetFocusedRowCellValue(maap).ToString().Trim();
     frm.txtmaap.IsReadOnly = true;
     frm.txtten.Text = gridControl1.GetFocusedRowCellValue(ten_ap).ToString().Trim();
     frm.txtghichu.Text = cmbxa.Text;
     this.DialogResult = false;
     frm.Show();
 }