Example #1
0
        static void TestingPersons()
        {
            string Path = @"\\MCRAESERVER-PC\McRae Files\PipeDrive\XML\1788.xml";

            Deals.LoadNewCustomer(Path);
            Deals.CreateCustomer();
        }
Example #2
0
        static void UploadToPipeDrive(string args1, string args2)
        {
            string Path = @"\\MCRAESERVER-PC\McRae Files\PipeDrive\XML\" + args1 + ".xml";

            if (args2 == "newDeal")
            {
                if (Deals.LoadNewDeal(Path, args2))
                {
                    Deals.CreateDeal();
                }
                else
                {
                    Deals.ReloadDeal();
                }
            }
            else if (args2 == "updateDeal")
            {
                Deals.LoadUpdateDeal(Path, args2);
                Deals.UpdateDeal();
            }
            else if (args2 == "newCustomer")
            {
                Deals.LoadNewCustomer(Path);
            }
        }