Exemplo n.º 1
0
        private static void AddReference(CbisSupplierManagementClient client, List<string> list)
        {
            if (list.Count != 2)
            {
                Console.WriteLine(string.Format("Usage: {0} [username] [password] addref [subsystem:id (existing ref)] [subsystem:id (ref to add)]", 
                    Path.GetFileName(System.Reflection.Assembly.GetEntryAssembly().Location)));
                return;
            }

            ReferenceName target = new ReferenceName(list[0]);
            ReferenceName newName = new ReferenceName(list[1]);

            client.ModifyProductReferences(
                null,
                target,
                new List<ReferenceName>() { newName },
                new List<ReferenceName>());
        }
Exemplo n.º 2
0
        private static void AddReference(CbisSupplierManagementClient client, List <string> list)
        {
            if (list.Count != 2)
            {
                Console.WriteLine(string.Format("Usage: {0} [username] [password] addref [subsystem:id (existing ref)] [subsystem:id (ref to add)]",
                                                Path.GetFileName(System.Reflection.Assembly.GetEntryAssembly().Location)));
                return;
            }

            ReferenceName target  = new ReferenceName(list[0]);
            ReferenceName newName = new ReferenceName(list[1]);

            client.ModifyProductReferences(
                null,
                target,
                new List <ReferenceName>()
            {
                newName
            },
                new List <ReferenceName>());
        }