private void ShowAddDialog() { //var view = new AddSimDevicesView(); //view.DataContext = _addSimDevicesViewModel; //view.ShowDialog(); var view = new AddDeviceSimulatorNameView(); view.DataContext = _headerDevicesSimulatorViewModel; view.ShowDialog(); if (_headerDevicesSimulatorViewModel.IsOK) { var newDevices = _deviceSimulatorService.AddDevices(_headerDevicesSimulatorViewModel.Qty , _headerDevicesSimulatorViewModel.QtyXml , _headerDevicesSimulatorViewModel.SendTime); foreach (var item in newDevices) { SimDeviceList.Add(item); } Save(); } //_headerDevicesSimulatorViewModel.Reset(); }
private void showAddDeviceSimulatorName() { var view = new AddDeviceSimulatorNameView(); view.DataContext = _headerDevicesSimulatorViewModel; view.ShowDialog(); }