本文整理汇总了C#中Building.AddService方法的典型用法代码示例。如果您正苦于以下问题:C# Building.AddService方法的具体用法?C# Building.AddService怎么用?C# Building.AddService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Building
的用法示例。
在下文中一共展示了Building.AddService方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadBuildingData
/// <summary>
/// Loads the building data.
/// </summary>
void LoadBuildingData()
{
Building temp;
//load science and computing data
temp = new Building ("245", "Science and Computing");
//add occupant names
temp.AddOccupant ("Shri Rai");
temp.AddOccupant ("Dr Mohd Fairuz Shiratuddin");
temp.AddOccupant ("Danny Toohey");
temp.AddOccupant ("Dr Kevin Wong");
temp.AddOccupant ("Dr Hong Xie");
temp.AddOccupant ("Dr Nik Thompson");
temp.AddOccupant ("Dr Pyara Dhillon");
temp.AddOccupant ("Dr Christian Payne");
temp.AddOccupant ("Peter Cole");
temp.AddOccupant ("Dr Graham Mann");
//add services
temp.AddService ("Computing Labs x5");
temp.AddService ("Meeting Rooms x3");
temp.AddService ("Research Labs x18");
temp.AddService ("Male Toilets lvl 2");
temp.AddService ("Female Toilets lvl 2");
temp.AddService ("Male Toilets lvl 3");
temp.AddService ("Female Toilets lvl 3");
temp.AddService ("Male Emergency Shower 3.048");
temp.AddService ("Female Emergency Shower 3.046");
temp.AddService ("First Aid Room 3.052");
temp.AddService ("RLT");
//add lectures
temp.AddLecture (8);
//add building to building manager
bm.AddBuilding (temp);
//load library
temp = new Building ("350", "Library");
//add occupant names
temp.AddOccupant ("Pamela Martin-Lynch");
temp.AddOccupant ("Dr Rebecca Bennett");
temp.AddOccupant ("Karyn Barenberg");
temp.AddOccupant ("Dr Angela Jones");
temp.AddOccupant ("Professor Geoffrey Bolton");
temp.AddOccupant ("Kate Makowiecka");
temp.AddOccupant ("Sonia Boccardo");
temp.AddOccupant ("Ghylene Palmer");
temp.AddOccupant ("Joanne Lisciandro");
temp.AddOccupant ("Jodie-Lee McLeod");
//add services
temp.AddService ("Computing Labs x5");
temp.AddService ("Meeting Rooms x2");
temp.AddService ("Private Study Rooms x20");
temp.AddService ("Silent Computing Lab lvl 1 South");
temp.AddService ("Library & Information Services lvl 2 South");
temp.AddService ("After Hours Entry lvl 2 Learning Link");
temp.AddService ("DVD Viewing Rooms x3");
temp.AddService ("Photocopying & Printing Services");
temp.AddService ("IT Service Desk lvl 3 North");
temp.AddService ("Reserve Section lvl 3 North");
//no lectures
//add building to building manager
bm.AddBuilding (temp);
//load ECL
temp = new Building ("460", "Economics, Commerce and Law");
//add occupant names
temp.AddOccupant ("Andrew Syme");
temp.AddOccupant ("Abigayle Carmody");
temp.AddOccupant ("Nikola Horley");
temp.AddOccupant ("Supratik Mukherji");
temp.AddOccupant ("Dr Courtney Field");
//add services
temp.AddService ("Male/Female Toilets");
temp.AddService ("Lift Access");
temp.AddService ("Kitchens");
temp.AddService ("Meeting/Seminar Rooms");
temp.AddService ("Computer Labs");
temp.AddService ("Post Graduate Area");
temp.AddService ("Lunch Box Cafe");
temp.AddService ("First Aid Boxes");
temp.AddService ("Security Call Points");
temp.AddService ("Catholic Chaplain");
temp.AddService ("ECL1");
temp.AddService ("ECL2");
temp.AddService ("ECL3");
temp.AddService ("ECL4");
//add lectures
temp.AddLecture (1);
temp.AddLecture (9);
temp.AddLecture (16);
temp.AddLecture (17);
temp.AddLecture (21);
//add building to building manager
bm.AddBuilding (temp);
//load Chancellery
temp = new Building ("330", "Chancellery");
//add occupant names
//.........这里部分代码省略.........