/// <summary>
        /// Salva modifiche database
        /// </summary>
        private void AddThreadType(string type)
        {
            byte tipologia;

            byte.TryParse(type, out tipologia);

            TipologiaFilettatura threadType = null;

            switch (tipologia)
            {
            case 0:
            {
                threadType = new TipologiaMetrica();
            } break;

            case 1:
            {
                threadType = new TipologiaInPollici();
            } break;

            default:
                throw new NotImplementedException();

                break;
            }

            threadType.Descrizione = "<new>";

            _tabellaFilettature.Filettature.Add(threadType);

            OnPropertyChanged("TipologieFilettatura");
        }
 public FilettaturaInPolliciViewModel(TipologiaInPollici inPollici, MeasureUnit measureUnit)
     : base(inPollici, measureUnit)
 {
 }