Exemplo n.º 1
0
Arquivo: CSEvents.cs Projeto: pcstx/OA
 /// <summary>
 /// Raises all BeforeGroup events. These events are raised before a group change is commited to the datastore
 /// </summary>
 public static void BeforeGroup(Group group, ObjectState state, ApplicationType appType)
 {
     CSApplication.Instance().ExecutePreSectionGroupUpdate(group,state,appType);
 }
Exemplo n.º 2
0
 public abstract int CreateUpdateDeleteGroup(Group group, DataProviderAction action);
Exemplo n.º 3
0
 internal void ExecutePreSectionGroupUpdate(Group group, ObjectState state, ApplicationType appType)
 {
     CSGroupEventHandler handler = Events[EventPreSectionGroupUpdate] as CSGroupEventHandler;
     if (handler != null)
     {
         handler(group, new CSEventArgs(state,appType));
     }
 }
Exemplo n.º 4
0
        public static Group PopulateForumGroupFromIDataReader(IDataReader dr)
        {
            Group forumGroup               = new Group();
            forumGroup.GroupID             = (int) dr["GroupID"];
            forumGroup.Name                = (string) dr["Name"];
            forumGroup.NewsgroupName       = (string) dr["NewsgroupName"];
            forumGroup.SortOrder           = Convert.ToInt32(dr["SortOrder"]);
            forumGroup.ApplicationType     = (ApplicationType) (Int16) dr["ApplicationType"];

            return forumGroup;
        }
Exemplo n.º 5
0
Arquivo: Group.cs Projeto: pcstx/OA
 public object Clone()
 {
     Group g = new Group(this.name);
     g.Sections = this.sections;
     g.sortOrder = this.sortOrder;
     g.groupID = this.groupID;
     g._applicationType = this._applicationType;
     g.newsgroupName = this.newsgroupName;
     return g;
 }