private void executeInsertFittingCommand() { FittingsClass fitting = new FittingsClass() { ID = SelectedFitting.ID, FittingName = SelectedFitting.FittingName, Price = SelectedFitting.Price, UnitOfMeasure = SelectedFitting.UnitOfMeasure, Quantity = _nuber }; if (_table != null) { _table.AddFittings(fitting); } Number = 0f; }