Exemplo n.º 1
0
        public EditItemComandaVM(comenzi_detaliu item)
        {
            PrepareData();

            Save   = new RelayCommand(OnSave);
            Cancel = new RelayCommand(OnCancel);
            Item   = item;
        }
Exemplo n.º 2
0
        public EditItemComanda(comenzi_detaliu item)
        {
            InitializeComponent();

            var vm = new EditItemComandaVM(item);

            vm.CloseAction         = OnCloseRequest;
            LayoutRoot.DataContext = vm;
        }
Exemplo n.º 3
0
        private void OnAdd()
        {
            var newItem = new comenzi_detaliu();
            var dlg     = new EditItemComanda(newItem);

            if (dlg.ShowDialog() != true)
            {
                return;
            }

            //newItem.RaisePropertyChanged("valoare");
            Item.comenzi_detaliu.Add(newItem);
            RaisePropertyChanged("Total");
        }