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); } }