Exemplo n.º 1
0
        private void ExecuteOpenMachinesForm(object parameter)
        {
            MachinesManager dataManager = new MachinesManager();

            MachinesView view = new MachinesView();

            view.DataContext = new MachinesViewModel(dataManager.Machines);

            if (!base.ShowDialog(Translator.Translate("UI_MACHINES"), view))
            {
                return;
            }

            dataManager.SaveChanges();
        }