private void EventGridSelectionChanged(object sender, EventArgs e) { CurrentIdSetting = VxGridSettings.GetIdSetting(); if (VxGridSettings.Grid.HideSelection) { VxGridSettings.Grid.HideSelection = false; } CurrentSetting = VxGridSettings.GetSetting(CurrentIdSetting); EventSettingOneRowSelected(); }
private void ResetView() { ResetDataSourceForTreeview(); VxGridSettings.ResetView(); CurrentIdFolder = -1; NameOfSelectedNode = string.Empty; CurrentIdSetting = string.Empty; CurrentSetting = null; SearchResult = null; SearchIterator = 0; PvSettings.Visible = false; }
private async Task SettingChangeRank(bool GotoUp) { if (GotoUp) { BxSettingUp.Enabled = false; } else { BxSettingDown.Enabled = false; } string IdSetting = CurrentIdSetting; Setting sibling = GotoUp ? VxGridSettings.UpperSibling(CurrentSetting) : VxGridSettings.LowerSibling(CurrentSetting); if (sibling != null) { ReturnCode code = DbSettings.SwapRank(CurrentIdFolder, CurrentSetting, sibling); await this.RefreshGridSettingsAndClearSelection(); // Setting: rank changed // PnUpper.Select(); } }
private async Task RefreshGridSettings() { var list = await DbSettings.GetSettings(CurrentIdFolder); VxGridSettings.RefreshGrid(list); }