Beispiel #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();
        }
Beispiel #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();
        }