public UISortInputText AddTextInput(string header) { UISortInputText textPanel = new UISortInputText(uielem.Count + 1, header); uielem.Add(textPanel); selectables.Add(new Selectable(textPanel)); return(textPanel); }
public Selectable(UISortInputText inputText) { this.selText = null; this.inputText = inputText; GetValue = GetValueInputText; SetValue = SetValueInputText; GetHeader = GetHeaderInputText; ind = inputText.ind; }
public Selectable(SelectableText selText) { this.selText = selText; this.inputText = null; GetValue = GetValueSelText; SetValue = SetValueSelText; GetHeader = GetHeaderSelText; ind = selText.self.ind; }
public override int CompareTo(object obj) { UISortInputText otherIsP = obj as UISortInputText; UITextPhrase otherIsT = obj as UITextPhrase; if (otherIsP == null) { return(ind.CompareTo(otherIsT.ind)); } else { return(ind.CompareTo(otherIsP.ind)); } }