// Copyright (c) 2017 schick Informatik // Description: Simple status info dialog // using System.Windows; using bsmd.database; using ENI2.Controls; namespace ENI2.EditControls { /// /// Interaction logic for CoreStatusInfoDialog.xaml /// public partial class CoreStatusInfoDialog : EditWindowBase { public MessageCore Core { get; set; } public CoreStatusInfoDialog() { InitializeComponent(); this.Loaded += CoreStatusInfoDialog_Loaded; } private void CoreStatusInfoDialog_Loaded(object sender, RoutedEventArgs e) { if (this.Core == null) return; this.checkBoxCancelled.IsChecked = this.Core.Cancelled; this.checkBoxCancellable.IsChecked = this.Core.VisitIdOrTransitIdCancellable; this.textBlockBlocked.Text = this.Core.BlockedNotificationClasses; this.textBlockOwn.Text = this.Core.OwnNotificationClasses; this.textBlockFree.Text = this.Core.FreeNotificationClasses; this.textBlockErrorCode.Text = this.Core.StatusCheckErrorCode; this.textBlockErrorMessage.Text = this.Core.StatusCheckErrorMessage; this.Title = string.Format("{0} {1} {2}", this.Title, this.Core.DisplayId, this.Core.Shipname); } } }