Esempio n. 1
0
 private void cmdThem_Click(object sender, RoutedEventArgs e)
 {
    // this.DialogResult = true;
     frmnhaptram frm = new frmnhaptram(false);
     this.DialogResult = false;
     frm.Show();
 }
Esempio n. 2
0
 private void tableView1_RowDoubleClick(object sender, DevExpress.Xpf.Grid.RowDoubleClickEventArgs e)
 {
     frmnhaptram frm = new frmnhaptram(true);
     frm.txtmaxa.Text = gridControl1.GetFocusedRowCellValue(ma_tram).ToString().Trim();
     frm.txtmaxa.IsReadOnly = true;
     frm.txtten.Text = gridControl1.GetFocusedRowCellValue(ten_tram).ToString().Trim();
     this.DialogResult = false;
     frm.Show();
 }