Exemplo n.º 1
0
        private int addnewPromotion(string[] strargs, int intargs)
        {
            pateltechDataSet dataset = new pateltechDataSet();

            // use a table adapter to populate the  table
            pateltechDataSetTableAdapters.PromotionTableAdapter support = new pateltechDataSetTableAdapters.PromotionTableAdapter();
            support.Insert(int.Parse(strargs[0]), strargs[1], strargs[2], strargs[3], strargs[4]);
            return(1);
        }