private void SelectTbSourceIndex(JValueCategroy sourceValueCategroy) { switch (sourceValueCategroy) { case JValueCategroy.List: tbSourceInfo.SelectedIndex = 0; break; case JValueCategroy.Range: tbSourceInfo.SelectedIndex = 1; break; case JValueCategroy.Sequence: tbSourceInfo.SelectedIndex = 1; break; case JValueCategroy.FromTable: tbSourceInfo.SelectedIndex = 2; break; case JValueCategroy.OtherField: tbSourceInfo.SelectedIndex = 3; break; } }
public FieldValueTypeNotSupportValueCategroyException(string filedName, JFieldType valueType, JValueCategroy sourceValueCategroy) : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName)) { }
private NotSupportedException GetException(string filedName, JFieldType valueType, JValueCategroy sourceValueCategroy) { throw new NotSupportedException(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName)); }
private NotSupportedException GetException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy) { throw new NotSupportedException(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName)); }
public FieldValueTypeNotSupportValueCategroyException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy) : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName)) { }
private void cBoxValueCategroy_SelectedIndexChanged(object sender, EventArgs e) { JValueCategroy sourceValueCategroy = (JValueCategroy)Enum.Parse(typeof(JValueCategroy), cBoxValueCategroy.Text, true); SelectTbSourceIndex(sourceValueCategroy); }
private void SelectTbSourceIndex(JValueCategroy sourceValueCategroy) { switch (sourceValueCategroy) { case JValueCategroy.List: tbSourceInfo.SelectedIndex = 0; break; case JValueCategroy.Range: tbSourceInfo.SelectedIndex = 1; break; case JValueCategroy.Sequence: tbSourceInfo.SelectedIndex = 1; break; case JValueCategroy.FromTable: tbSourceInfo.SelectedIndex = 2; break; case JValueCategroy.OtherField: tbSourceInfo.SelectedIndex = 3; break; } }