示例#1
0
        void ShowFormDialog(DataTable dt)
        {
            frmLookUpStokMotor ifrm = new frmLookUpStokMotor(dt);

            ifrm.ShowDialog();
            if (ifrm.DialogResult == DialogResult.OK)
            {
                _motor = ifrm.Motor;
                RefreshData();
            }
        }
示例#2
0
 public void SetByRowID(Guid t_rowID)
 {
     try
     {
         _motor = new Class.clsStokMotor(t_rowID);
         RefreshData();
     }
     catch (Exception ex)
     {
         Error.LogError(ex);
     }
 }
示例#3
0
 private void frmLookUpMotor_Load(object sender, EventArgs e)
 {
     Motor = new Class.clsStokMotor();
     RefreshGrid();
 }