Exemplo n.º 1
0
        private void Add(EventModel model)
        {
            var window = new AddEditEventView {
                ViewModel = this
            };

            window.Render(model);
            window.ShowDialog();
        }
Exemplo n.º 2
0
        public void Edit(int id)
        {
            var model  = EventService.Edit(id);
            var window = new AddEditEventView {
                ViewModel = this
            };

            window.Render(model);
            window.ShowDialog();
        }