本文整理汇总了C#中Staff.SetName方法的典型用法代码示例。如果您正苦于以下问题:C# Staff.SetName方法的具体用法?C# Staff.SetName怎么用?C# Staff.SetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Staff
的用法示例。
在下文中一共展示了Staff.SetName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadStaffData
/// <summary>
/// Loads the staff data.
/// </summary>
void LoadStaffData()
{
Staff temp;
//building 245
//Shri Rai
temp = new Staff ();
temp.SetName ("Shri Rai");
temp.SetBuildingNo ("245");
temp.SetOfficeNo("1.019");
temp.AddPhone ("9360 6090");
temp.SetEmail ("[email protected]");
temp.SetPhoto ("none");
temp.SetPosition ("Senior Lecturer");
temp.AddOrganisation ("Academy");
temp.AddOrganisation ("School of Engineering and Information Technology");
temp.AddOrganisation ("Information Technology");
//add to staff manager
sm.AddStaff (temp);
//Nik Thompson
temp = new Staff ();
temp.SetName ("Dr Nik Thompson");
temp.SetBuildingNo ("245");
temp.SetOfficeNo("1.011");
temp.AddPhone ("9360 1258");
temp.SetEmail ("[email protected]");
temp.SetPhoto ("759.jpg");
temp.SetPosition ("Lecturer");
temp.AddOrganisation ("Academy");
temp.AddOrganisation ("School of Engineering and Information Technology");
temp.AddOrganisation ("Information Technology");
//add to staff manager
sm.AddStaff (temp);
//Fairuz Shiratuddin
temp = new Staff ();
temp.SetName ("Dr Mohd Fairuz Shiratuddin");
temp.SetBuildingNo ("245");
temp.SetOfficeNo("1.014");
temp.AddPhone ("9360 2794");
temp.SetEmail ("[email protected]");
temp.SetPhoto ("341.jpg");
temp.SetPosition ("Senior Lecturer");
temp.AddOrganisation ("Academy");
temp.AddOrganisation ("School of Engineering and Information Technology");
temp.AddOrganisation ("Information Technology");
//add to staff manager
sm.AddStaff (temp);
//Christian Payne
temp = new Staff ();
temp.SetName ("Dr Christian Payne");
temp.SetBuildingNo ("245");
temp.SetOfficeNo("1.015");
temp.AddPhone ("9360 2778");
temp.SetEmail ("[email protected]");
temp.SetPhoto ("none");
temp.SetPosition ("Lecturer - Information Technology");
temp.AddOrganisation ("Academy");
temp.AddOrganisation ("School of Engineering and Information Technology");
temp.AddOrganisation ("Information Technology");
//add to staff manager
sm.AddStaff (temp);
//Dr Hong Xie
temp = new Staff ();
temp.SetName ("Dr Hong Xie");
temp.SetBuildingNo ("245");
temp.SetOfficeNo("1.016");
temp.AddPhone ("9360 6087");
temp.SetEmail ("[email protected]");
temp.SetPhoto ("none");
temp.SetPosition ("Senior Lecturer");
temp.AddOrganisation ("Academy");
temp.AddOrganisation ("School of Engineering and Information Technology");
temp.AddOrganisation ("Information Technology");
//add to staff manager
sm.AddStaff (temp);
//Dr Kevin Wong
temp = new Staff ();
temp.SetName ("Dr Kevin Wong");
temp.SetBuildingNo ("245");
temp.SetOfficeNo("1.018");
temp.AddPhone ("9360 6100");
temp.SetEmail ("[email protected]");
temp.SetPhoto ("511.gif");
temp.SetPosition ("Associate Professor");
temp.AddOrganisation ("Academy");
temp.AddOrganisation ("School of Engineering and Information Technology");
temp.AddOrganisation ("Information Technology");
//add to staff manager
sm.AddStaff (temp);
//Danny Toohey
temp = new Staff ();
//.........这里部分代码省略.........