Beispiel #1
0
        private void OnDataPublisher(RowResultSender <T> args)
        {
            var handler = RowPublisherHandler;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Beispiel #2
0
        //public ResultItem IterateAndCreateResults(ResultIterator iterator)
        // {
        //     foreach (var result in iterator)
        //     {
        //         if (result == null)
        //             continue;
        //         string comment = result.Comment.SourceVersion + " " + result.Comment.CommentState + " ";
        //         comment += result.Comment.DestinationVersion != null ? (Int32.Parse(result.Comment.DestinationVersion) > 0 ? result.Comment.DestinationVersion : "") : "";
        //
        //         PublishRowItem(new ResultItem(result.SourceResult.Filename, result.SourceResult.FilePath, result.SourceResult.CurrentVersion,
        //                                                 result.SourceResult.Status.ToString(), "", result.DestinationResult.Filename, result.DestinationResult.FilePath,
        //                                                 result.DestinationResult.CurrentVersion, result.DestinationResult.Status.ToString(), comment));
        //         //Task dataDisplay = Task.Factory.StartNew(() => AddDisplayRowItem(result, comment));
        //         //DataGridTable.Items.Add(new ResultItem(result.SourceResult.Filename, result.SourceResult.FilePath, result.SourceResult.CurrentVersion,
        //         //                                        result.SourceResult.Status.ToString(), "", result.DestinationResult.Filename, result.DestinationResult.FilePath,
        //         //                                        result.DestinationResult.CurrentVersion, result.DestinationResult.Status.ToString(), comment));
        //     }
        //     return null;
        // }
        #endregion

        private void OnRowPublish(RowResultSender <ResultItem> args)
        {
            var handler = RowPublisherHandler;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Beispiel #3
0
        public void PublishRowItem(ResultItem data)
        {
            RowResultSender <ResultItem> row = (RowResultSender <ResultItem>)Activator.CreateInstance(typeof(RowResultSender <ResultItem>), new object[] { data });

            OnRowPublish(row);
        }