/// <summary>
        /// Salva modifiche database
        /// </summary>
        public void DelMachine(ToolMachineViewModel macchineDialogViewModel)
        {
            var name = macchineDialogViewModel.MachineName;

            var msgBoxRslt = MessageBox.Show("Delete Item ?", "Delete name", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);

            if (msgBoxRslt != MessageBoxResult.Yes)
            {
                return;
            }

            var machine = macchineDialogViewModel.Machine;

            if (_machines.Contains(machine))
            {
                _machines.Remove(machine);
            }

            SelectedMachine = Machines.FirstOrDefault();

            OnPropertyChanged("Machines");
        }
        /// <summary>
        /// Salva modifiche database
        /// </summary>
        private void AddMachine(string param)
        {
            var i = int.Parse(param);

            ToolMachine machine;

            switch (i)
            {
            default:
            case 0:     // mill
            {
                machine = new VerticalMill();
            }
            break;
            }

            var g = machine.MachineGuid;

            _machines.Add(machine);

            OnPropertyChanged("Machines");

            SelectedMachine = Machines.Where(m => m.MachineGuid == g).FirstOrDefault();
        }