示例#1
0
        private void Check_Status(object sender, RoutedEventArgs e)
        {
            SettingSource          settings = new SettingSource(DB.PackagesList[userListBox.SelectedIndex].State);
            ParcelStatusInfoWindow win      = new ParcelStatusInfoWindow(settings);

            win.Owner = this;
            win.ShowDialog();
        }
 public ParcelStatusInfoWindow(SettingSource setting)
 {
     InitializeComponent();
     this.WindowSettings = setting;
     this.DataContext    = setting;
 }