Beispiel #1
0
        // Set the tooltip to the image, if possible, when we enter the row
        private void Row_MouseEnter(object sender, MouseEventArgs e)
        {
            // Set the ToolTip to the image in the row's tag
            DataGridRow      row   = e.Source as DataGridRow;
            FeedbackRowTuple tuple = (FeedbackRowTuple)row?.Item;
            ImageRow         ir    = tuple?.ImageRow;

            if (row == null || tuple == null || ir == null)
            {
                return;
            }

            // Load an image from thie image row (specified in the tuple.Tag)
            Image image = new Image()
            {
                Source = ir.LoadBitmap(this.FolderPath, Constant.ImageValues.PreviewWidth480, out bool _)
            };

            row.ToolTip = image;
        }
 // Add a row to the tuple, which in turn will update the grid.
 // Also ensures the latest added row is in view.
 public void AddFeedbackRow(string fileName, string status, string oldDateTime, string newDateTime, string difference)
 {
     FeedbackRowTuple row = new FeedbackRowTuple(fileName, status, oldDateTime, newDateTime, difference);
     this.feedbackRows.Add((FeedbackRowTuple)row);
     this.feedbackGrid.ScrollIntoView(this.feedbackGrid.Items[feedbackGrid.Items.Count - 1]);
 }
Beispiel #3
0
        // Add a row to the tuple, which in turn will update the grid.
        public void AddFeedbackRow(string sampleFileName, string currentDate, string newDate, string numFilesWithThatDate, ImageRow imageRow, AmbiguousDateRange ambiguousDateRange)
        {
            FeedbackRowTuple row = new FeedbackRowTuple(sampleFileName, currentDate, newDate, numFilesWithThatDate, imageRow, ambiguousDateRange);

            this.feedbackRows.Add(row);
        }