示例#1
0
        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;
            }
        }
示例#2
0
文件: JTable.cs 项目: windygu/Justin
 public FieldValueTypeNotSupportValueCategroyException(string filedName, JFieldType valueType, JValueCategroy sourceValueCategroy)
     : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName))
 {
 }
示例#3
0
文件: JTable.cs 项目: windygu/Justin
 private NotSupportedException GetException(string filedName, JFieldType valueType, JValueCategroy sourceValueCategroy)
 {
     throw new NotSupportedException(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName));
 }
示例#4
0
 private NotSupportedException GetException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy)
 {
     throw new NotSupportedException(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName));
 }
示例#5
0
 public FieldValueTypeNotSupportValueCategroyException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy)
     : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName))
 {
 }
示例#6
0
        private void cBoxValueCategroy_SelectedIndexChanged(object sender, EventArgs e)
        {
            JValueCategroy sourceValueCategroy = (JValueCategroy)Enum.Parse(typeof(JValueCategroy), cBoxValueCategroy.Text, true);

            SelectTbSourceIndex(sourceValueCategroy);
        }
示例#7
0
 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;
     }
 }