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


C# Group类代码示例

本文整理汇总了C#中Group的典型用法代码示例。如果您正苦于以下问题:C# Group类的具体用法?C# Group怎么用?C# Group使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Group类属于命名空间,在下文中一共展示了Group类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Organisation

        public Organisation(
            User createdByUser,
            string name,
            string description,
            string website,
            MediaResource avatar,
            MediaResource background,
            IEnumerable<string> categories,
            DateTime createdDateTime,
            Group parentGroup)
            : base(createdByUser,
            name,
            createdDateTime,
            parentGroup)
        {
            Check.RequireNotNull(categories != null, "categories");

            InitMembers();

            SetOrganisationDetails(
                description,
                website,
                avatar,
                background,
                categories);

            ApplyEvent(new DomainModelCreatedEvent<Organisation>(this, createdByUser, this));
        }
开发者ID:Bowerbird,项目名称:bowerbird-web,代码行数:28,代码来源:Organisation.cs

示例2: OnGameBoardElementAdded

 void OnGameBoardElementAdded(Group group, Entity entity, int index, IComponent component)
 {
     var grid = pool.gameBoardCache.grid;
     var pos = entity.position;
     grid.Add(pos.x, pos.y, entity);
     pool.ReplaceGameBoardCache(grid);
 }
开发者ID:JamesMcMahon,项目名称:entitas-2d-roguelike,代码行数:7,代码来源:GameBoardCacheSystem.cs

示例3: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _pool.GetGroup(Matcher.SettingsModel).OnEntityUpdated += update;
     _group = pool.GetGroup(Matcher.DifficultyController);
     _models = pool.GetGroup(Matcher.DifficultyModel);
 }
开发者ID:Namek,项目名称:SpaceShooter,代码行数:7,代码来源:DifficultyControllerSystem.cs

示例4: CSR

 /**
    * Creates a CSR (Clinical Study Registration) segment object that belongs to the given
    * message.
    */
 public CSR(Group parent, ModelClassFactory factory)
     : base(parent,factory)
 {
     Message message = Message;
     try {
        this.add(typeof(EI), true, 1, 60, new System.Object[]{message}, "Sponsor Study ID");
        this.add(typeof(EI), false, 1, 60, new System.Object[]{message}, "Alternate Study ID");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Institution Registering the Patient");
        this.add(typeof(CX), true, 1, 30, new System.Object[]{message}, "Sponsor Patient ID");
        this.add(typeof(CX), false, 1, 30, new System.Object[]{message}, "Alternate Patient ID - CSR");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Date/Time Of Patient Study Registration");
        this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Person Performing Study Registration");
        this.add(typeof(XCN), true, 0, 250, new System.Object[]{message}, "Study Authorizing Provider");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date/time Patient Study Consent Signed");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Patient Study Eligibility Status");
        this.add(typeof(TS), false, 3, 26, new System.Object[]{message}, "Study Randomization Date/time");
        this.add(typeof(CE), false, 3, 250, new System.Object[]{message}, "Randomized Study Arm");
        this.add(typeof(CE), false, 3, 250, new System.Object[]{message}, "Stratum for Study Randomization");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Patient Evaluability Status");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date/time Ended Study");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Reason Ended Study");
     } catch (HL7Exception he) {
     HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
     }
 }
开发者ID:snosrap,项目名称:nhapi,代码行数:29,代码来源:CSR.cs

示例5: MSH

 /**
    * Creates a MSH (Message Header) segment object that belongs to the given
    * message.
    */
 public MSH(Group parent, ModelClassFactory factory)
     : base(parent,factory)
 {
     Message message = Message;
     try {
        this.add(typeof(ST), true, 1, 1, new System.Object[]{message}, "Field Separator");
        this.add(typeof(ST), true, 1, 4, new System.Object[]{message}, "Encoding Characters");
        this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Sending Application");
        this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Sending Facility");
        this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Receiving Application");
        this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Receiving Facility");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Date/Time Of Message");
        this.add(typeof(ST), false, 1, 40, new System.Object[]{message}, "Security");
        this.add(typeof(MSG), true, 1, 15, new System.Object[]{message}, "Message Type");
        this.add(typeof(ST), true, 1, 20, new System.Object[]{message}, "Message Control ID");
        this.add(typeof(PT), true, 1, 3, new System.Object[]{message}, "Processing ID");
        this.add(typeof(VID), true, 1, 60, new System.Object[]{message}, "Version ID");
        this.add(typeof(NM), false, 1, 15, new System.Object[]{message}, "Sequence Number");
        this.add(typeof(ST), false, 1, 180, new System.Object[]{message}, "Continuation Pointer");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 155}, "Accept Acknowledgment Type");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 155}, "Application Acknowledgment Type");
        this.add(typeof(ID), false, 1, 3, new System.Object[]{message, 399}, "Country Code");
        this.add(typeof(ID), false, 0, 16, new System.Object[]{message, 211}, "Character Set");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Principal Language Of Message");
        this.add(typeof(ID), false, 1, 20, new System.Object[]{message, 356}, "Alternate Character Set Handling Scheme");
        this.add(typeof(EI), false, 0, 427, new System.Object[]{message}, "Message Profile Identifier");
     } catch (HL7Exception he) {
     HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
     }
 }
开发者ID:snosrap,项目名称:nhapi,代码行数:34,代码来源:MSH.cs

示例6: BPX

 /**
    * Creates a BPX (Blood product dispense status) segment object that belongs to the given
    * message.
    */
 public BPX(Group parent, ModelClassFactory factory)
     : base(parent,factory)
 {
     Message message = Message;
     try {
        this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID _ BPX");
        this.add(typeof(CWE), true, 1, 250, new System.Object[]{message}, "BP Dispense Status");
        this.add(typeof(ID), true, 1, 1, new System.Object[]{message, 511}, "BP Status");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "BP Date/Time of Status");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "BC Donation ID");
        this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BC Component");
        this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BC Donation Type / Intended Use");
        this.add(typeof(CWE), false, 1, 250, new System.Object[]{message}, "CP Commercial Product");
        this.add(typeof(XON), false, 1, 250, new System.Object[]{message}, "CP Manufacturer");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "CP Lot Number");
        this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BP Blood Group");
        this.add(typeof(CNE), false, 0, 250, new System.Object[]{message}, "BC Special Testing");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "BP Expiration Date/Time");
        this.add(typeof(NM), true, 1, 5, new System.Object[]{message}, "BP Quantity");
        this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "BP Amount");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "BP Units");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "BP Unique ID");
        this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "BP Actual Dispensed To Location");
        this.add(typeof(XAD), false, 1, 250, new System.Object[]{message}, "BP Actual Dispensed To Address");
        this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "BP Dispensed to Receiver");
        this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "BP Dispensing Individual");
     } catch (HL7Exception he) {
     HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
     }
 }
开发者ID:snosrap,项目名称:nhapi,代码行数:34,代码来源:BPX.cs

示例7: PEO

 /**
    * Creates a PEO (Product Experience Observation) segment object that belongs to the given
    * message.
    */
 public PEO(Group parent, ModelClassFactory factory)
     : base(parent,factory)
 {
     Message message = Message;
     try {
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Event Identifiers Used");
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Event Symptom/Diagnosis Code");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Event Onset Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Event Exacerbation Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Event Improved Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Event Ended Data/Time");
        this.add(typeof(XAD), false, 0, 250, new System.Object[]{message}, "Event Location Occurred Address");
        this.add(typeof(ID), false, 0, 1, new System.Object[]{message, 237}, "Event Qualification");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 238}, "Event Serious");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 239}, "Event Expected");
        this.add(typeof(ID), false, 0, 1, new System.Object[]{message, 240}, "Event Outcome");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 241}, "Patient Outcome");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Others");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event From Original Reporter");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Patient");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Practitioner");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Autopsy");
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Cause Of Death");
        this.add(typeof(XPN), false, 0, 250, new System.Object[]{message}, "Primary Observer Name");
        this.add(typeof(XAD), false, 0, 250, new System.Object[]{message}, "Primary Observer Address");
        this.add(typeof(XTN), false, 0, 250, new System.Object[]{message}, "Primary Observer Telephone");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 242}, "Primary Observer's Qualification");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 242}, "Confirmation Provided By");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Primary Observer Aware Date/Time");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 243}, "Primary Observer's identity May Be Divulged");
     } catch (HL7Exception he) {
     HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
     }
 }
开发者ID:snosrap,项目名称:nhapi,代码行数:38,代码来源:PEO.cs

示例8: Add

 public void Add(Group group)
 {
     lock (this.ThisLock)
     {
         _table[group] = new GroupManager(group);
     }
 }
开发者ID:networkelements,项目名称:Library,代码行数:7,代码来源:ExistManager.cs

示例9: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _camera = _pool.GetGroup(Matcher.Camera);
     _time = _pool.GetGroup(Matcher.Time);
     _group = pool.GetGroup(Matcher.AllOf(Matcher.Path, Matcher.GameObject, Matcher.Velocity, Matcher.VelocityLimit, Matcher.Position));
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:PathSystem.cs

示例10: SetPool

 public void SetPool(Pool pool)
 {
     group = pool.GetGroup(Matcher.AllOf(Matcher.PlayerScore, Matcher.GameObject));
     killInfo = pool.GetGroup(Matcher.AllOf(Matcher.KillInfo, Matcher.GameObject));
     score = pool.GetGroup(Matcher.Score);
     translation = pool.GetGroup(Matcher.TranslationService);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:PlayerScoreSystem.cs

示例11: PutGroup

        // PUT api/Groups/5
        public HttpResponseMessage PutGroup(int id, Group group)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != group.Id)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(group).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }
开发者ID:nathanfl,项目名称:AAHIPro,代码行数:26,代码来源:GroupsController.cs

示例12: MoveCard

 public MoveCard(Player who, Card card, Group to, int idx, bool faceUp)
 {
     this.who = who; this.card = card;
     this.to = to; this.from = card.Group;
     this.idx = idx;
     this.faceUp = faceUp;
 }
开发者ID:YoshiEnVerde,项目名称:OCTGN,代码行数:7,代码来源:Move.cs

示例13: createGroup

 public static Group createGroup(object[] items, LogicalOperator logicalOperator)
 {
     Group gr1 = new Group();
     gr1.logicRelation = logicalOperator;
     gr1.Items = items;
     return gr1;
 }
开发者ID:CuriousX,项目名称:annotation-and-image-markup,代码行数:7,代码来源:CreateAttrAssoGroup.cs

示例14: OBX

 /**
    * Creates a OBX (Observation segment) segment object that belongs to the given
    * message.
    */
 public OBX(Group parent, ModelClassFactory factory)
     : base(parent,factory)
 {
     Message message = Message;
     try {
        this.add(typeof(SI), false, 1, 4, new System.Object[]{message}, "Set ID - OBX");
        this.add(typeof(ID), true, 1, 2, new System.Object[]{message, 125}, "Value Type");
        this.add(typeof(CE), true, 1, 590, new System.Object[]{message}, "Observation Identifier");
        this.add(typeof(ST), false, 1, 20, new System.Object[]{message}, "Observation Sub-ID");
        this.add(typeof(Varies), false, 0, 65536, new System.Object[]{message}, "Observation Value");
        this.add(typeof(CE), false, 1, 60, new System.Object[]{message}, "Units");
        this.add(typeof(ST), false, 1, 10, new System.Object[]{message}, "References Range");
        this.add(typeof(ID), false, 5, 5, new System.Object[]{message, 78}, "Abnormal Flags");
        this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "Probability");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 80}, "Nature of Abnormal Test");
        this.add(typeof(ID), true, 1, 1, new System.Object[]{message, 85}, "Observ Result Status");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date Last Obs Normal Values");
        this.add(typeof(ST), false, 1, 20, new System.Object[]{message}, "User Defined Access Checks");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date/Time of the Observation");
        this.add(typeof(CE), false, 1, 60, new System.Object[]{message}, "Producer's ID");
        this.add(typeof(XCN), false, 1, 80, new System.Object[]{message}, "Responsible Observer");
        this.add(typeof(CE), false, 0, 80, new System.Object[]{message}, "Observation Method");
     } catch (HL7Exception he) {
     HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
     }
 }
开发者ID:snosrap,项目名称:nhapi,代码行数:30,代码来源:OBX.cs

示例15: GetGroup

 public void GetGroup()
 {
     m_Group = Group.GetGroup( Group.GroupsEnum.Administrator );
     Assert.IsNotNull(m_Group);
     Assert.AreEqual(Group.GroupsEnum.Administrator, m_Group.GroupType);
     Assert.AreEqual(Group.GroupsEnum.Administrator.ToString(), m_Group.GroupID);
 }
开发者ID:Confirmit,项目名称:Portal,代码行数:7,代码来源:GroupsTest.cs


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