当前位置: 首页>>代码示例>>C#>>正文


C# Staff.SetPosition方法代码示例

本文整理汇总了C#中Staff.SetPosition方法的典型用法代码示例。如果您正苦于以下问题:C# Staff.SetPosition方法的具体用法?C# Staff.SetPosition怎么用?C# Staff.SetPosition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Staff的用法示例。


在下文中一共展示了Staff.SetPosition方法的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 ();
//.........这里部分代码省略.........
开发者ID:Brandon-Ashworth,项目名称:WARIS,代码行数:101,代码来源:ResourceController.cs


注:本文中的Staff.SetPosition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。