예제 #1
0
        private void comDataType_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (comDataType.SelectedIndex)
            {
                case -1:
                    _currentDataType = new dataTypeIntegral();
                    break;
                case 0:
                    _currentDataType = new dataTypeIntegral();
                    break;
                case 1:
                    _currentDataType = new dataTypeFloating();
                    break;
                case 2:
                    _currentDataType = new dataTypeDatTime();
                    break;
                case 3:
                    _currentDataType = new dataTypeDecimal();
                    break;
            }

            loadFormatCues();

            formatIt();
        }
예제 #2
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     _currentDataType = new dataTypeIntegral();
 }