Ejemplo n.º 1
0
        /// <summary>
        /// 读数方法
        /// </summary>
        public void ReadDataInput()
        {
            frmKeyBoard frm = new frmKeyBoard();

            frm.ShowDialog();
            if (frm.InputStr != string.Empty)
            {
                ReadData = SysConvert.ToDecimal(frm.InputStr);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 录入缸号
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CheckKeyBoardCall_Click(object sender, EventArgs e)
 {
     try
     {
         frmKeyBoard frm = new frmKeyBoard();
         frm.InputStr = ((Control)sender).Text;
         frm.ShowDialog();
         if (frm.InputStr != string.Empty)
         {
             ((Control)sender).Text = frm.InputStr;
         }
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }