コード例 #1
0
ファイル: TapmacViewModel.cs プロジェクト: amuthagan/Invoic
 private void SaveTapmac()
 {
     try
     {
         tapmac.saveTapmachine(ddtappingmac);
         CloseAction();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
        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();
            }
        }