예제 #1
0
        void ProxyExecDown()
        {
            int      ix        = ProxyList.IndexOf(SelectedProxy);
            LE_Proxy nextProxy = ProxyList[ix + 1];
            int      ix1       = SelectedProxy.Ix;

            _dataService.SwapProxy(SelectedProxy, nextProxy);
            SelectedProxy.Ix  = nextProxy.Ix;
            nextProxy.Ix      = ix1;
            ProxyList[ix + 1] = SelectedProxy;
            ProxyList[ix]     = nextProxy;
            SelectedProxy     = ProxyList[ix + 1];
        }
예제 #2
0
        void ProxyExecUp()
        {
            int      ix        = ProxyList.IndexOf(SelectedProxy);
            LE_Proxy prevProxy = ProxyList[ix - 1];
            int      ix1       = SelectedProxy.Ix;

            _dataService.SwapProxy(SelectedProxy, prevProxy);
            SelectedProxy.Ix  = prevProxy.Ix;
            prevProxy.Ix      = ix1;
            ProxyList[ix - 1] = SelectedProxy;
            ProxyList[ix]     = prevProxy;
            SelectedProxy     = ProxyList[ix - 1];
        }