Example #1
0
        public void ShowFileExplorerWindow(IPPort ipport)
        {
            FileExplorerWindow fileExplorerWindow = listFileExplorerWindow.Where(win => { return(win.UserID == ipport.UserId); }).FirstOrDefault();

            if (fileExplorerWindow == null)
            {
            }
        }
Example #2
0
        public void ShowWindow(PaceServer server, ClientInfo client)
        {
            var window = new FileExplorerWindow(server, client);

            // TODO: Probably not an optimal place to put this in, remember to handle this somewhere else
            server.ClientDisconnected += (sender, args) =>
            {
                if (args.Client == client.Owner)
                {
                    Application.Current.Dispatcher.Invoke(() =>
                    {
                        window.Close();
                    });
                }
            };

            window.Show();
        }