Exemplo n.º 1
0
        private void AddDemoDevice_Click(object sender, EventArgs e)
        {
            var ud = TestDeviceHelper.NewUserDevice();

            SettingsManager.UserDevices.Items.Add(ud);
            MainForm.Current.DHelper.UpdateDevicesEnabled = true;
        }
Exemplo n.º 2
0
        private void AddDemoDevice_Click(object sender, EventArgs e)
        {
            var ud = TestDeviceHelper.NewUserDevice();

            lock (SettingsManager.UserDevices.SyncRoot)
                SettingsManager.UserDevices.Items.Add(ud);
            Global.DHelper.UpdateDevicesEnabled = true;
        }
 private void AddDemoDeviceButton_Click(object sender, RoutedEventArgs e)
 {
     ControlsHelper.BeginInvoke(() =>
     {
         var ud = TestDeviceHelper.NewUserDevice();
         lock (SettingsManager.UserDevices.SyncRoot)
             SettingsManager.UserDevices.Items.Add(ud);
         Global.DHelper.UpdateDevicesEnabled = true;
     });
 }
Exemplo n.º 4
0
        private void AddDemoDevice_Click(object sender, EventArgs e)
        {
            var ud = TestDeviceHelper.NewUserDevice();

            SettingsManager.UserDevices.Items.Add(ud);
        }