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]; }
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]; }