예제 #1
0
        /// <summary>
        /// 
        /// </summary>
        public static void BuildApplicationResult(WSConnection connection, Application application)
        {
            //Build Quality Indicators
            using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application))
            {
                Task taskQualityIndicators = new Task(() => applicationBLL.SetQualityIndicators());
                taskQualityIndicators.Start();

                //Build Quality Indicators
                Task taskSizingMeasure = new Task(() => applicationBLL.SetSizingMeasure());
                taskSizingMeasure.Start();

                taskQualityIndicators.Wait();
                taskSizingMeasure.Wait();
            }
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        static public void BuildApplicationResult(WSConnection connection, Application application)
        {
            //Build Quality Indicators
            using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application))
            {
                Task taskQualityIndicators = new Task(() => applicationBLL.SetQualityIndicators());
                taskQualityIndicators.Start();


                //Build Quality Indicators
                Task taskSizingMeasure = new Task(() => applicationBLL.SetSizingMeasure());
                taskSizingMeasure.Start();


                taskQualityIndicators.Wait();
                taskSizingMeasure.Wait();
            }
        }
예제 #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="application"></param>
 /// <returns></returns>
 private static void SetSnapshots(WSConnection connection, Application application)
 {
     using (ApplicationBLL applicationBLL = new ApplicationBLL(connection, application))
     {
         applicationBLL.SetSnapshots();
     }
 }
예제 #4
0
 /// <summary>
 /// Implement Command that Load the current snapshots list
 /// </summary>
 void ExecuteLoadSnapshotsCommand(object parameter)
 {
     if (SelectedApplication != null)
     {
         using (ApplicationBLL applicationBLL = new ApplicationBLL(ActiveConnection, SelectedApplication))
         {
             applicationBLL.SetSnapshots();
             Snaphosts = SelectedApplication.Snapshots.OrderByDescending(_ => _.Annotation.Date.DateSnapShot).ToList();
         }
     }
     else
         Snaphosts = null;
 }