public void OnOkButtonClicked()
 {
     if (_view.MaterialType == MaterialType.BaseMaterial)
     {
         if (!string.IsNullOrEmpty(_view.NormName.Trim()))
         {
             var normToSave = new BaseNorm() { Name = _view.NormName };
             _dataConnector.SaveBaseNorm(normToSave);
             _view.CloseDialog();
         }
     }
     else
     {
         if (!string.IsNullOrEmpty(_view.NormName.Trim()))
         {
             var normToSave = new AdditiveNorm() { Name = _view.NormName };
             _dataConnector.SaveAdditiveNorm(normToSave);
             _view.CloseDialog();
         }
     }
 }
 public void SaveAdditiveNorm(AdditiveNorm norm)
 {
     _normRepo.SerializeAdditiveNorm(norm);
 }