private void SaveTapmac() { try { tapmac.saveTapmachine(ddtappingmac); CloseAction(); } catch (Exception ex) { throw ex; } }
private void SaveTapmac() { try { if (ddtappingmac.IsValid) { //Save it somewhere //Progress.ProcessingText = PDMsg.ProgressUpdateText; //Progress.Start(); tapmac.saveTapmachine(ddtappingmac); //Progress.End(); ShowInformationMessage(PDMsg.SavedSuccessfully); //MessageBox.Show("Tapmac Saved Successfully", ApplicationTitle, MessageBoxButton.OK, MessageBoxImage.Information); isSaved = true; if (_closed == false) { _closed = true; CloseAction(); } } //ValidateProperties(); //Errors = FlattenErrors(); //if (!HasErrors) //{ // // Save it somewhere // //tapmac.saveTapmachine(ddtappingmac); // CloseAction(); //} } catch (Exception ex) { throw ex.LogException(); } }