Ejemplo n.º 1
0
        public override ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex)
        {
            BaseInputCell cell = (BaseInputCell)scrollView.CreateCell("InputCell");

            cell.SetText(DisplayText);
            cell.SetInput(value);
            cell.SetHeaderOffset(LogConsoleSettings.GetTreeViewOffsetByLevel(level));
            cell.SetBackgroundColor(LogConsoleSettings.GetCellColor(cellIndex));
            cell.SetIsNumeric(isNumeric);
            cell.SetReadonly(isReadonly);
            cell.OnValueChanged = OnValueChanged;
            return(cell);
        }
Ejemplo n.º 2
0
 public void OnValueChanged(BaseInputCell cell, string value)
 {
     if (string.IsNullOrEmpty(value) && isNumeric)
     {
         cell.SetInput(value);
         return;
     }
     else
     {
         this.value = value;
         if (callback != null)
         {
             callback(this);
         }
     }
 }