public ResourceParameterNamesWindow(ResourceNames resourceNames)
        {
            InitializeComponent();
            ResourceNames = resourceNames;

            db = new SimSaprNewEntities();
            db.ResourceParameterNames.Load();
            parametersGrid.ItemsSource = db.ResourceParameterNames.Where(rp => rp.ResourceNameId == ResourceNames.ResourceNameId).Include(rp => rp.ResourceNames).ToList();

            this.Closing += MainWindow_Closing;
        }
示例#2
0
        public ResourceNamesWindow()
        {
            InitializeComponent();

            db = new SimSaprNewEntities();
            db.ResourceNames.Load();
            db.ResourceTypes.Load();
            ResourceTypes             = db.ResourceTypes.ToList();
            resourcesGrid.ItemsSource = db.ResourceNames.ToList();

            this.Closing += MainWindow_Closing;
        }