private void button_manage_wmi_Click(object sender, RoutedEventArgs e) { Properties.Settings.Default.wmiIPScan = selectedDevice.deviceIP; Properties.Settings.Default.Save(); WMILoginWindow loginWindow = new WMILoginWindow(); Nullable <bool> dialogResult = loginWindow.ShowDialog(); if ((bool)dialogResult) { refreshDeviceDetails(); } }
private void button_manage_wmi_Click(object sender, RoutedEventArgs e) { Properties.Settings.Default.wmiIPScan = selectedDevice.deviceIP; Properties.Settings.Default.Save(); WMILoginWindow loginWindow = new WMILoginWindow(); Nullable<bool> dialogResult = loginWindow.ShowDialog(); if((bool)dialogResult) { refreshDeviceDetails(); } }