public CheckBoxListSimple( bool disabled, string selectedItem, IReadAndWriteItems itemAPI, Action <string> onChange, Optional <NonBlankTrimmedString> className = new Optional <NonBlankTrimmedString>(), string title = "" ) : base(new Props( className, title, disabled, onChange, selectedItem, itemAPI)) { }
public CheckBoxList( bool disabled, bool[] checkBoxArray, IReadAndWriteItems itemAPI, Action <string> onChange, Optional <NonBlankTrimmedString> className = new Optional <NonBlankTrimmedString>(), Optional <NonBlankTrimmedString> titre = new Optional <NonBlankTrimmedString>() ) : base(new Props( className, titre, disabled, onChange, checkBoxArray, itemAPI)) { }
public Props( Optional <NonBlankTrimmedString> className, Optional <NonBlankTrimmedString> titre, bool disabled, Action <string> onChange, bool[] checkBoxArray, IReadAndWriteItems itemAPI) { this.CtorSet(_ => _.ClassName, className); this.CtorSet(_ => _.Titre, titre); this.CtorSet(_ => _.Disabled, disabled); this.CtorSet(_ => _.OnChange, onChange); this.CtorSet(_ => _.CheckBoxArray, checkBoxArray); this.CtorSet(_ => _.ItemAPI, itemAPI); }
public Props( Optional <NonBlankTrimmedString> className, string title, bool disabled, Action <string> onChange, string selectedItem, IReadAndWriteItems itemAPI) { this.CtorSet(_ => _.ClassName, className); this.CtorSet(_ => _.Title, title); this.CtorSet(_ => _.Disabled, disabled); this.CtorSet(_ => _.OnChange, onChange); this.CtorSet(_ => _.SelectedItem, selectedItem); this.CtorSet(_ => _.ItemAPI, itemAPI); }
public SelectList( IReadAndWriteItems itemAPI, Action <string> onChange, string itemSelected = "", bool disabled = false, bool multiple = false, bool oneListPerLine = false, Optional <bool[]> checkBoxArray = new Optional <bool[]>(), Optional <NonBlankTrimmedString> className = new Optional <NonBlankTrimmedString>(), string title = "" ) : base(new Props( className, title, disabled, multiple, oneListPerLine, onChange, itemSelected, checkBoxArray, itemAPI)) { }
public ScrollTextBox( bool disabled, IReadAndWriteItems itemAPI, Action <string> onChangeSTB, Action <string> onChange, Action onSave, string inputValueSTB, Optional <NonBlankTrimmedString> className = new Optional <NonBlankTrimmedString>(), Optional <NonBlankTrimmedString> titre = new Optional <NonBlankTrimmedString>() ) : base(new Props( className, titre, disabled, itemAPI, inputValueSTB, onChangeSTB, onChange, onSave )) { }
public Props( Optional <NonBlankTrimmedString> className, Optional <NonBlankTrimmedString> titre, bool disabled, IReadAndWriteItems itemApi, string inputValueSTB, Action <string> onChangeSTB, Action <string> onChange, Action onSave ) { this.CtorSet(_ => _.ClassName, className); this.CtorSet(_ => _.Titre, titre); this.CtorSet(_ => _.Disabled, disabled); this.CtorSet(_ => _.ItemApi, itemApi); this.CtorSet(_ => _.InputValueSTB, inputValueSTB); this.CtorSet(_ => _.OnChangeSTB, onChangeSTB); this.CtorSet(_ => _.OnChange, onChange); this.CtorSet(_ => _.OnSave, onSave); }
public Props( Optional <NonBlankTrimmedString> className, string title, Optional <bool> disabled, Optional <bool> multiple, Optional <bool> oneListPerLine, // Isolé : Fieldset : saut de ligne Action <string> onChange, Optional <string> itemSelected, Optional <bool[]> checkBoxArray, IReadAndWriteItems itemApi) { this.CtorSet(_ => _.ClassName, className); this.CtorSet(_ => _.Title, title); this.CtorSet(_ => _.Disabled, disabled); this.CtorSet(_ => _.Multiple, multiple); this.CtorSet(_ => _.OneListPerLine, oneListPerLine); this.CtorSet(_ => _.OnChange, onChange); this.CtorSet(_ => _.ItemSelected, itemSelected); this.CtorSet(_ => _.CheckBoxArray, checkBoxArray); this.CtorSet(_ => _.ItemApi, itemApi); }
public string ListToString(IReadAndWriteItems ItemApi) { var sb = new System.Text.StringBuilder(); var lst = ItemApi.GetItemList(); int numElemMax = lst.Count(); int nbCar = 0; for (int i = 0; i < numElemMax; i++) { string txt = lst[i]; //string txt = lst[numElemMax-i-1]; // Reverse _lastLine = txt; int txtLen = txt.Length; _selStart = nbCar; _selEnd = nbCar + txtLen - 1; sb.AppendLine(txt); nbCar += txtLen; } string text = sb.ToString(); return(text); }