Пример #1
0
/*****************************************************************************/
// this part is specially for shadowfog pannel and shadowsocks pannel transition
/*****************************************************************************/
        private void LoadBackUpConfiguration()
        {
            _modifiedConfiguration = controller.GetBackUpConfiguration();// load _configBackUp from memory
            LoadConfiguration(_modifiedConfiguration);
            _lastSelectedIndex = _modifiedConfiguration.index;
            if (_lastSelectedIndex < 0)
            {
                _lastSelectedIndex = 0;
            }
            ServersListBox.SelectedIndex = _lastSelectedIndex;
            UpdateMoveUpAndDownButton();
            LoadSelectedServer();
        }