Esempio n. 1
0
 public MainVM()
 {
     Data           = new ContextData();
     CreateTB       = new CreateTypeBiereVM(this);
     EditTB         = new EditTypeBiereVM(this);
     DetailTB       = new DetailTypeBiereVM(this);
     CreateBiere    = new CreateBiereVM(this);
     EditBiere      = new EditBiereVM(this);
     DetailBiere    = new DetailBiereVM(this);
     EditBrasserie  = new EditBrasserieVM(this);
     CreateClient   = new CreateClientVM(this);
     DetailClient   = new DetailClientVM(this);
     CreateCom      = new CreateCommandeVM(this);
     EditCom        = new EditCommandeVM(this);
     DetailCom      = new DetailCommandeVM(this);
     CreateContact  = new CreateContact(this);
     EditContact    = new EditContact(this);
     DetailContact  = new DetailContact(this);
     CreateEmploi   = new CreateEmploi(this);
     EditEmploi     = new EditEmploi(this);
     DetailEmploi   = new DetailEmploi(this);
     CreateEven     = new CreateEvent(this);
     EditEvent      = new EditEvent(this);
     DetailEvent    = new DetailEvent(this);
     CreateHorraire = new CreateHorraire(this);
     EditHorraire   = new EditHorraire(this);
     DetailHorraire = new DetailHorraire(this);
     CreateMessage  = new CreateMessage(this);
     EditMessage    = new EditMessage(this);
     DetailMessage  = new DetailMessage(this);
     CreateRecomp   = new CreateRecompense(this);
     EditRecomp     = new EditRecompense(this);
     DetailRecomp   = new DetailRecompense(this);
 }
Esempio n. 2
0
        protected override void SelectionChanged(IList <int> selectedIds)
        {
            if (selectedIds == null || selectedIds.Count <= 0)
            {
                return;
            }

            var item     = Find(selectedIds.First());
            var diffItem = item as DiffTreeViewItem;

            DetailEvent?.Invoke(diffItem);
        }
 private void DetailTriggered(DetailEvent obj)
 {
     ChangeNavigationViewState(obj.DetailState, obj.OrderId, obj.OrderCollection);
 }
 private void DetailTriggered(DetailEvent obj)
 {
     ChangeEditorViewState(obj.DetailState, obj.OrderId);
 }