Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            new Task(() =>
            {
                server = new FileBrowserHelper();
                server.LoadServerListener();
            }).Start();

            new Task(() =>
            {
                cb     = new ClientCallback(this);
                client = new FileBrowserHelper();
                client.LoadClientListener(cb);
                client.SendMessageToServer(js.Serialize(new Request()
                {
                    RequestType = Models.RequestEnum.ListOfDrives
                }));
            }).Start();
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

              new Task(() =>
              {
            server = new FileBrowserHelper();
            server.LoadServerListener();
              }).Start();

              new Task(() =>
              {
            cb = new ClientCallback(this);
            client = new FileBrowserHelper();
            client.LoadClientListener(cb);
            client.SendMessageToServer(js.Serialize(new Request() { RequestType = Models.RequestEnum.ListOfDrives }));
              }).Start();
        }