@magic-xpa/gui 4.900.0-dev490.261 → 4.900.0-dev490.262

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13940,13 +13940,8 @@ class MgFormBase extends GuiFormPropertyAdapter {
13940
13940
  if (idx >= 0 && idx < this.Rows.length)
13941
13941
  this.Rows.set_Item(idx, new Row(false, false));
13942
13942
  }
13943
- SelectRow(sendAlwaysOrRowIdx, sendAlways) {
13944
- if (arguments.length === 0)
13945
- this.SelectRow_0();
13946
- else if (arguments.length === 1)
13947
- this.SelectRow_1(sendAlwaysOrRowIdx);
13948
- else
13949
- this.SelectRow_2(sendAlwaysOrRowIdx, sendAlways);
13943
+ SelectRow() {
13944
+ this.SelectRowByIdx(this.DisplayLine);
13950
13945
  }
13951
13946
  getRowsInPage() {
13952
13947
  return this._rowsInPage;
@@ -14184,19 +14179,13 @@ class MgFormBase extends GuiFormPropertyAdapter {
14184
14179
  this.Rows.SetSize(idx + 1);
14185
14180
  this.Rows.set_Item(idx, new Row(true, true));
14186
14181
  }
14187
- SelectRow_0() {
14188
- this.SelectRow(false);
14189
- }
14190
- SelectRow_1(sendAlways) {
14191
- this.SelectRow(this.DisplayLine, sendAlways);
14192
- }
14193
- SelectRow_2(rowIdx, sendAlways) {
14182
+ SelectRowByIdx(rowIdx) {
14194
14183
  let mainControl = this.getMainControl();
14195
14184
  if (mainControl !== null && this.RefreshRepeatableAllowed) {
14196
14185
  let index = rowIdx;
14197
14186
  if (this._task.DataView.isEmptyDataview())
14198
14187
  index = GuiConstants.NO_ROW_SELECTED;
14199
- if (sendAlways || index !== this._prevSelIndex) {
14188
+ if (index !== this._prevSelIndex) {
14200
14189
  this._prevSelIndex = index;
14201
14190
  Commands.addOperationWithLine(CommandType.SET_PROPERTY, mainControl, 0, HtmlProperties.SelectedRow, index);
14202
14191
  }