Always leave out ATA/ATD from send all dialog

This commit is contained in:
Daniel Schick 2025-07-30 17:11:05 +02:00
parent ad2f7afd16
commit ce97aeca27

View File

@ -66,22 +66,21 @@ namespace ENI2.EditControls
// these are of no interest // these are of no interest
if ((aMessage.MessageNotificationClass == Message.NotificationClass.VISIT) || if ((aMessage.MessageNotificationClass == Message.NotificationClass.VISIT) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.TRANSIT) || (aMessage.MessageNotificationClass == Message.NotificationClass.TRANSIT) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.STO)) (aMessage.MessageNotificationClass == Message.NotificationClass.STO))
continue; continue;
// these are never imported but may be sent // these are neither imported nor sent by the Send all function
if (IsImportMode)
{ if ((aMessage.MessageNotificationClass == Message.NotificationClass.ATA) ||
if ((aMessage.MessageNotificationClass == Message.NotificationClass.ATA) || (aMessage.MessageNotificationClass == Message.NotificationClass.ATD))
(aMessage.MessageNotificationClass == Message.NotificationClass.ATD)) continue;
continue;
}
// filter out messages not relevant for transit // filter out messages not relevant for transit
if (IsTransit && ( if (IsTransit && (
(aMessage.MessageNotificationClass == Message.NotificationClass.ATA) || (aMessage.MessageNotificationClass == Message.NotificationClass.ATA) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.ATD) || (aMessage.MessageNotificationClass == Message.NotificationClass.ATD) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.BKRD) || (aMessage.MessageNotificationClass == Message.NotificationClass.BKRD) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.HAZD) || (aMessage.MessageNotificationClass == Message.NotificationClass.HAZD) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.INFO) || (aMessage.MessageNotificationClass == Message.NotificationClass.INFO) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.LADG) || (aMessage.MessageNotificationClass == Message.NotificationClass.LADG) ||
@ -100,9 +99,9 @@ namespace ENI2.EditControls
sc.IsSelected = this._preselectedClasses.Contains(sc.Class); sc.IsSelected = this._preselectedClasses.Contains(sc.Class);
_selectClasses.Add(sc); _selectClasses.Add(sc);
} }
this.checkListBoxClasses.ItemsSource = _selectClasses;
this.checkListBoxClasses.ItemsSource = _selectClasses;
this.OKClicked += SelectImportClassesDialog_OKClicked; this.OKClicked += SelectImportClassesDialog_OKClicked;
} }
@ -128,7 +127,7 @@ namespace ENI2.EditControls
OnPropertyChanged("IsSelected"); OnPropertyChanged("IsSelected");
} }
} }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName) protected void OnPropertyChanged(string propertyName)
{ {