void ManualAdd() { ManualUri manUri = new ManualUri(LocalTitles.instance.manualAdd, ManualUri.ManualType.ADD, ""); manUri.Owner = Application.Current.MainWindow; if (manUri.ShowDialog().Value == true) { var ret = manUri.devUri; ManualLoaded(ret); } }
void ManualEdit(DeviceDescriptionHolder dhold) { ManualUri manUri = new ManualUri(LocalTitles.instance.manualEdit, ManualUri.ManualType.EDIT, dhold.ManualDevice.DevUri); manUri.Owner = Application.Current.MainWindow; if (manUri.ShowDialog().Value == true) { var ret = manUri.devUri; Devices.Remove(dhold); ManualLoaded(ret); } }