public static bool ShowBox(Window parent, SerialDeviceInfo info)
        {
            DeviceEdit_USB win = new DeviceEdit_USB(parent, info);

            win.ShowDialog();
            return(win.Changed);
        }
Exemplo n.º 2
0
 /// <summary>Raises popup if no saved Serial configurations for port</summary>
 private void onSerialConfigRequest(object sender, SerialDeviceInfo e)
 {
     this.Dispatcher.Invoke(() => {
         this.ui.IsBusy = false;
         DeviceEdit_USB.ShowBox(this, e);
         this.ui.IsBusy = true;
     });
 }
Exemplo n.º 3
0
 private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     // Will have to reload values after
     if (DeviceEdit_USB.ShowBox(this.parent, this.info))
     {
         this.listboxMain.ItemsSource = null;
         this.listboxMain.ItemsSource = DI.Wrapper.Serial_GetDeviceInfoForDisplay(info);
     }
 }
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            SerialDeviceInfo info = this.lbUsb.SelectedItem as SerialDeviceInfo;

            if (info != null)
            {
                int index = this.lbUsb.SelectedIndex;
                if (DeviceEdit_USB.ShowBox(this, info))
                {
                    this.ReloadList();
                    this.WaitForLoad(index);
                }
            }
        }