Update messages when a id is received to show green line
This commit is contained in:
parent
be78399def
commit
5ee7cf2f2a
@ -226,6 +226,7 @@ namespace ENI2
|
||||
public void CoreChanged(MessageCore newCore)
|
||||
{
|
||||
this.Core = newCore;
|
||||
this.ReloadCore();
|
||||
System.Windows.Application.Current.Dispatcher.Invoke(delegate
|
||||
{
|
||||
if(controlCache.ContainsKey(Properties.Resources.textOverview))
|
||||
|
||||
@ -357,6 +357,9 @@ namespace ENI2.DetailViewControls
|
||||
|
||||
this.buttonExcelImport.IsEnabled = !this.Core.DisplayId.IsNullOrEmpty();
|
||||
|
||||
this.dataGridMessages.ItemsSource = null;
|
||||
this.dataGridMessages.ItemsSource = this.Messages;
|
||||
|
||||
//MessageBox.Show(string.Format("Visit/Transit ID updated: {0}", this.Core.DisplayId));
|
||||
//ShowIdDialog sid = new ShowIdDialog(this.Core)
|
||||
//{
|
||||
|
||||
@ -102,6 +102,7 @@ namespace ENI2
|
||||
private void ContextMenu_ContextMenuOpening(object sender, ContextMenuEventArgs e)
|
||||
{
|
||||
MessageCore selectedCore = this.dataGrid.SelectedItem as MessageCore;
|
||||
if(selectedCore != null)
|
||||
cancelItem.Visibility = (this.AdminMode && (selectedCore.Cancelled ?? false)) ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user