Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="application"></param>
 /// <returns></returns>
 private static void SetSnapshots(WSConnection connection, Domain.Application application)
 {
     using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application))
     {
         applicationBLL.SetSnapshots();
     }
 }
Пример #2
0
/*
 *      /// <summary>
 *      /// Implement Command that Load the templates list of Portfolio
 *      /// </summary>
 *      private void ExecuteLoadTemplatesPortfolioCommand(object parameter)
 *      {
 *          TemplateFiles = SettingsBLL.GetTemplateFileListPortfolio();
 *      }
 */

        /// <summary>
        /// Implement Command that Load the current snapshots list
        /// </summary>
        private void ExecuteLoadSnapshotsCommand(object parameter)
        {
            if (SelectedApplication != null)
            {
                using (ApplicationBLL applicationBLL = new ApplicationBLL(ActiveConnection, SelectedApplication.Application))
                {
                    applicationBLL.SetSnapshots();
                    Snaphosts = SelectedApplication.Application.Snapshots.OrderByDescending(_ => _.Annotation.Date.DateSnapShot).ToList();
                }
            }
            else
            {
                Snaphosts = null;
            }
        }