public void OpenFileTransferWindow(Viewer viewer)
 {
     Dispatcher.UIThread.Post(() =>
     {
         if (_fileTransferWindows.TryGetValue(viewer.ViewerConnectionID, out var window))
         {
             window.Activate();
         }
         else
         {
             window = new FileTransferWindow
             {
                 DataContext = new FileTransferWindowViewModel(viewer, this)
             };
             window.Closed += (sender, arg) =>
             {
                 _fileTransferWindows.Remove(viewer.ViewerConnectionID, out _);
             };
             _fileTransferWindows.AddOrUpdate(viewer.ViewerConnectionID, window, (k, v) => window);
             window.Show();
         }
     });
 }
예제 #2
0
        public void on_mnuShowTransferDetails_activate(object o, EventArgs args)
        {
            FileTransferWindow window = new FileTransferWindow(transfer);

            window.Show();
        }