private void AddProperty_Button_Click(object sender, RoutedEventArgs e) { try { AddDeviceProperty newW = new AddDeviceProperty(newDeviceProps); newW.Show(); } catch (Exception) { } }
private void AddProp_Click(object sender, RoutedEventArgs e) { try { Device dev = (Device)PrintersList.SelectedItem; AddDeviceProperty addPropWin = new AddDeviceProperty(dev.DeviceProps); addPropWin.Show(); } catch (Exception) { //ingnore the click } }
private void AddProp_Click(object sender, RoutedEventArgs e) { try { Device dev = (Device)PrintersList.SelectedItem; AddDeviceProperty addPropWin = new AddDeviceProperty(dev.DeviceProps); addPropWin.Show(); } catch (Exception) { //ingnore the click //MessageBox.Show("Process failed! Please try again!"); } }