private void DataGridPlantOrder_LoadingRowGroup(object sender, DataGridRowGroupHeaderEventArgs e) { ICollectionViewGroup group = e.RowGroupHeader.CollectionViewGroup; PlantOrderModel item = group.GroupItems[0] as PlantOrderModel; e.RowGroupHeader.PropertyValue = PlantOrderViewModel.GetPlantOrderMainNumber(item.Number); }
public ProjectDialog(DivisionViewModel collection) { this.InitializeComponent(); ProjectNumberCollection = new ProjectNumberViewModel(); PlantOrderCollection = new PlantOrderViewModel(); DivisionCollection = collection; ProductionCollection = new ProductionViewCollection(); }
public ProjectPreviewPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Enabled; Projects = new ObservableCollection <FolderModel>(); PlantOrders = new ObservableCollection <PlantOrderModel>(); CurrentPlantOrders = new PlantOrderViewModel(); CurrentFileEntries = new List <FileEntryModel>(); LoadUserSettings(); }