blob: 174144db3bfa09c051b5583dff4ac5dca1191c6f (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 21 3c 61 72 63 68 3e 0a 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 34 38 35 32 37 33 36 | !<arch>./...............14852736 |
| 0020 | 33 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 31 35 34 36 30 38 37 20 | 32..............0.......1546087. |
| 0040 | 20 20 60 0a 00 00 21 64 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ..`...!d........................ |
| 0060 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 0080 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 00a0 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 00c0 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 00e0 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 0100 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 0120 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 | ................................ |
| 0140 | 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2 00 2e ef b2using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Tango.PPC.Events.Views
{
/// <summary>
/// Interaction logic for MainView.xaml
/// </summary>
public partial class MainView : UserControl
{
public MainView()
{
InitializeComponent();
}
private void dataGridEvent_SelectionChanged(object sender, EventArgs e)
{
Task.Delay(100).ContinueWith((x) =>
{
this.BeginInvoke(() =>
{
dataGridEvent.LayoutRows(false);
var selected_row = dataGridEvent.GetRows().FirstOrDefault(y => y.IsSelected);
if (selected_row != null)
{
dataGridEvent.ScrollViewer.ScrollToElement(selected_row);
}
});
});
}
private void gridEventsHistory_SelectionChanged(object sender, EventArgs e)
{
Task.Delay(100).ContinueWith((x) =>
{
this.BeginInvoke(() =>
{
gridEventsHistory.LayoutRows(false);
var selected_row = gridEventsHistory.GetRows().FirstOrDefault(y => y.IsSelected);
if (selected_row != null)
{
gridEventsHistory.ScrollViewer.ScrollToElement(selected_row);
}
});
});
}
}
}
|