Example #1
0
 private void EventGridSelectionChanged(object sender, EventArgs e)
 {
     CurrentIdSetting = VxGridSettings.GetIdSetting();
     if (VxGridSettings.Grid.HideSelection)
     {
         VxGridSettings.Grid.HideSelection = false;
     }
     CurrentSetting = VxGridSettings.GetSetting(CurrentIdSetting);
     EventSettingOneRowSelected();
 }
Example #2
0
 private void ResetView()
 {
     ResetDataSourceForTreeview();
     VxGridSettings.ResetView();
     CurrentIdFolder    = -1;
     NameOfSelectedNode = string.Empty;
     CurrentIdSetting   = string.Empty;
     CurrentSetting     = null;
     SearchResult       = null;
     SearchIterator     = 0;
     PvSettings.Visible = false;
 }
Example #3
0
        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();
            }
        }
Example #4
0
        private async Task RefreshGridSettings()
        {
            var list = await DbSettings.GetSettings(CurrentIdFolder);

            VxGridSettings.RefreshGrid(list);
        }