public MapsForm(int id, object orders, object services) { InitializeComponent(); //User label userid = id; setup(userid.ToString(), "FAFOS Day Itinerary"); //Tables DataTable dt = new SalesOrder().getWorkOrders(userid); workOrderTable.DataSource = dt; DataTable dt2 = new ClientContract().getServices(userid.ToString()); servicesTable.DataSource = dt2; order = (WorkOrder[])orders; service = (ContractService[])services; prefetch = true; //Load the map AsyncMapLoadCaller asyncMapLoad = new AsyncMapLoadCaller(LoadMap); asyncMapLoad.BeginInvoke(new AsyncCallback(MapLoaded), null); //LoadMap(); }
public MapsForm(int id, object orders, object services) { InitializeComponent(); //User label userid = id; setup(userid.ToString(), "FAFOS Day Itinerary"); //Tables DataTable dt = new SalesOrder().getWorkOrders(userid); workOrderTable.DataSource = dt; DataTable dt2 = new ClientContract().getServices(userid.ToString()); servicesTable.DataSource = dt2; order = (WorkOrder[])orders; service = (ContractService[])services; prefetch = true; //Load the map AsyncMapLoadCaller asyncMapLoad = new AsyncMapLoadCaller(LoadMap); asyncMapLoad.BeginInvoke(new AsyncCallback(MapLoaded), null); //LoadMap(); }