Example #1
0
        /// <summary>
        /// 读数方法
        /// </summary>
        public void ReadDataInput()
        {
            frmKeyBoard frm = new frmKeyBoard();

            frm.ShowDialog();
            if (frm.InputStr != string.Empty)
            {
                ReadData = SysConvert.ToDecimal(frm.InputStr);
            }
        }
Example #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);
     }
 }