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(); }
private void frmMain_Load(object sender, EventArgs e) { _currentDataType = new dataTypeIntegral(); }