private void RemotePaste_Execute(Object sender, ExecutedRoutedEventArgs e) { ServerTileUserControl tile = serverTiles[selectedIndex]; tile.StartProgress(); connection.RemotePaste(); }
void connection_ServerTransferStarted(object sender, ServerTranferEventArgs e) { if (e.Position < 0 || e.Position >= serverTiles.Count) { Trace.TraceError("Posizione è fuori range. Pisition:{0} Length:{1}. In connection_ServerTransferStarted() ", e.Position, serverTiles.Count); return; } ServerTileUserControl tile = serverTiles[e.Position]; tile.StartProgress(); }