Exemple #1
0
        public void Execute()
        {
            try
            {
                IList <Prizm.Domain.Entity.Construction.Joint> list = repo.QuickSearchByNumber(viewModel.SearchNumber);
                if (dialog == null)
                {
                    dialog = new JointSelectDialog(list, viewModel);
                }
                else
                {
                    dialog.SetupForm(list, viewModel);
                }

                dialog.ShowDialog();
            }
            catch (RepositoryException ex)
            {
                log.Warn(this.GetType().Name + " | " + ex.ToString());
                notify.ShowWarning(Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Message),
                                   Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Header));
            }
        }
        public void Execute()
        {
            try
            {
            IList<Prizm.Domain.Entity.Construction.Joint> list = repo.QuickSearchByNumber(viewModel.SearchNumber);
            if (dialog == null)
            {
                dialog = new JointSelectDialog(list, viewModel);
            }
            else
            {
                dialog.SetupForm(list, viewModel);
            }

            dialog.ShowDialog();
            }
            catch(RepositoryException ex)
            {
                log.Warn(this.GetType().Name + " | " + ex.ToString());
                notify.ShowWarning(Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Message),
            Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Header));
            }
        }