DataSet.DSParameter SetViewToDS(FormCollection collection)
        {


            DataSet.DSParameter ds = new DataSet.DSParameter();
            DataSet.DSParameter.AttributeRow row = ds.Attribute.NewAttributeRow();


            row[ds.Attribute.Attribute_IDColumn] = collection[ UIAttribute.hidAttribute_ID.ToString()];
            row[ds.Attribute.AttributeColumn] = collection[UIAttribute.txtAttribute.ToString()];
            
            ds.Attribute.AddAttributeRow(row);


            DataSet.DSParameter.Product_Type_AttributeRow row2 = ds.Product_Type_Attribute.NewProduct_Type_AttributeRow();
            row2.Attribute_ID = 0;
            row2.Category_ID = 0;
            row2.Product_Type_ID = Convert.ToInt32( collection[UIAttribute.hidProduct_Type_ID.ToString()] );

            ds.Product_Type_Attribute.AddProduct_Type_AttributeRow(row2);

            ds.AcceptChanges();
            return ds;
        }
        DataSet.DSParameter SetViewToDS(FormCollection collection)
        {


            DataSet.DSParameter ds = new DataSet.DSParameter();
            DataSet.DSParameter.Product_TypeRow row = ds.Product_Type.NewProduct_TypeRow();


            row[ds.Product_Type.Product_Type_IDColumn] = collection[ UIProductType.hidProductTypeID.ToString()];
            //row[ds.Product_Type..LongitudeColumn] = collection[UIProductType.txtDescription.ToString()];
            row[ds.Product_Type.Product_Type_IDColumn] = 1;
            row[ds.Product_Type.Product_TypeColumn] = collection[UIProductType.txtEnterDate.ToString()];
            

            //row[ds.Product_Type.BuildingAppartmentColumn] = collection[UIProduct_Type.txtBuildingAppartment.ToString()];
            //row[ds.Product_Type.Street_NoColumn] = collection[UIProduct_Type.txtStreet_No.ToString()];
            //row[ds.Product_Type.Street_NameColumn] = collection[UIProduct_Type.txtStreet_Name.ToString()];
            //row[ds.Product_Type.Zip_CodeColumn] = collection[UIProduct_Type.txtZipCode.ToString()];
            //row[ds.Product_Type.CityColumn] = collection[UIProductType.txtProductType.ToString()];
            //row[ds.Product_Type.StateColumn] = collection[UIProductType.txtStatus.ToString()];
            //row[ds.Product_Type.CountryColumn] = collection[UIProduct_Type.txtCountry.ToString()];








            ds.Product_Type.AddProduct_TypeRow(row);
            ds.AcceptChanges();
            return ds;
        }
        DataSet.DSParameter SetViewToDS(FormCollection collection)
        {


            DataSet.DSParameter ds = new DataSet.DSParameter();
            DataSet.DSParameter.Attribute_VariantRow row = ds.Attribute_Variant.NewAttribute_VariantRow();
            row[ds.Attribute_Variant.Attribute_Variant_IDColumn] = collection[UIAttributeVariant.hidAttribute_ID.ToString()];

            row[ds.Attribute_Variant.Attribute_IDColumn] = collection[UIAttributeVariant.hidAttribute_ID.ToString()];
            row[ds.Attribute_Variant.Attribute_VariantColumn] = collection[UIAttributeVariant.txtAttributeVariant.ToString()];
         
            ds.Attribute_Variant.AddAttribute_VariantRow(row);

            ds.AcceptChanges();
            return ds;
        }