Пример #1
0
        void deviceList_ConnectToDevice(object sender, DeviceList.DeviceArgs e)
        {
            ConnArgs = e;

            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            Close();
        }
Пример #2
0
        public EthSearchForm(NurApi api)
        {
            mApi = api;

            InitializeComponent();

            deviceList.Api = api;
            deviceList.RefreshList();
            deviceList.ConnectToDevice += deviceList_ConnectToDevice;

            ConnArgs          = new DeviceList.DeviceArgs("n/a", 1000);
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }