Example #1
0
        public static void HandleDrivesResponse(Client client, DrivesResponse packet)
        {
            if (client.Value.FrmFm == null || packet.Drives == null)
                return;

            client.Value.FrmFm.AddDrives(packet.Drives);
        }
Example #2
0
        public static void HandleDrivesResponse(Client client, DrivesResponse packet)
        {
            if (client.Value.FrmFm == null)
                return;

            client.Value.FrmFm.Invoke((MethodInvoker) delegate
            {
                client.Value.FrmFm.cmbDrives.Items.Clear();
                client.Value.FrmFm.cmbDrives.Items.AddRange(packet.Drives);
                client.Value.FrmFm.cmbDrives.SelectedIndex = 0;
            });
        }