Пример #1
0
 public void SetRow(SettingItem row)
 {
     lbType.Text         = row.GetDisplayType();
     lbConfigName.Text   = row.DisplayName;
     txbConfigValue.Text = row.Value.ToString();
     this.Tag            = row.Name;
     valueType           = row.Type;
     if (valueType == SettingType.SETTING_BOOLEAN)
     {
         combOption.Text = (bool)row.Value ? "是" : "否";
         txbConfigValue.Hide();
         combOption.Show();
     }
     else
     {
         combOption.Hide();
     }
 }