//---------------------------------------------------------------------------
        private void bnConnect_Click(object sender, RoutedEventArgs e)
        {
            if (m_nIndex < 0)
            {
                return;
            }

            if (m_nIndex == 0) // TOP
            {
            }
            else if (m_nIndex == 1) // Bottom
            {
                //if (!LDCBTM.fn_Open(FM.m_stMasterOpt.sLoadCellSN)) return;
                if (LDCBTM.fn_GetSN() == "" || LDCBTM.fn_GetSN() == "Error")
                {
                    fn_UserMsg("[LOADCELL] Serial No Error!");
                    return;
                }

                if (!LDCBTM.fn_Open())
                {
                    fn_UserMsg("[LOADCELL] Connection Error!");
                    return;
                }

                _textOffset.Text             = LDCBTM._nOffset.ToString();
                _textFullScaleValue.Text     = LDCBTM._nFullScaleValue.ToString();
                _textFullScaleLoadValue.Text = LDCBTM._nFullScaleLoadValue.ToString();
                _textDecimalPoint.Text       = LDCBTM._nDecimalPoint.ToString();
                _textUnitCode.Text           = LDCBTM._sUnit;
            }
        }
 //---------------------------------------------------------------------------
 private void bnGetSerial_Click(object sender, RoutedEventArgs e)
 {
     _textSerialNo.Text = LDCBTM.fn_GetSN();
 }