public static void ShowBusStop(object obj)
{
object[] args = (object[])obj;
MainForm form = (MainForm)args[0];
form.UpdateText("Loading database");
List <BusStop> bss = (from b in db.BusStop select b).ToList();
form.UpdateText("Print search result");
string msg = "BusStop List";
form.UpdateLog(msg);
foreach (BusStop bs in bss)
{
form.UpdateLogMessage(bs.BSID + ",\t" + bs.Name + ",\t" + bs.District + ",\t" + bs.Address + ",\t" + bs.Direction + ",\t" + bs.BSCID);
}
form.UpdateText("Finished");
}