void ShowFormDialog(DataTable dt) { frmLookUpStokMotor ifrm = new frmLookUpStokMotor(dt); ifrm.ShowDialog(); if (ifrm.DialogResult == DialogResult.OK) { _motor = ifrm.Motor; RefreshData(); } }
public void SetByRowID(Guid t_rowID) { try { _motor = new Class.clsStokMotor(t_rowID); RefreshData(); } catch (Exception ex) { Error.LogError(ex); } }
private void frmLookUpMotor_Load(object sender, EventArgs e) { Motor = new Class.clsStokMotor(); RefreshGrid(); }