void ReplyCreateGroup(MessageUserToken userToken, ChatMessage cm) { string result = "0"; if (_groupList.Create(cm.Content, userToken.ID)) { result = "1"; } ReplyBase(userToken, new ChatMessage(ChatMessageType.CreateGroupAnswer, result)); }
private static void AddGroup(InstallStep p) { if (p.OptionalFileGroups == null) { p.OptionalFileGroups = GroupList.Create(); } if (p.OptionalFileGroups.Group == null) { p.OptionalFileGroups.Group = new ObservableCollection <Group>(); } p.OptionalFileGroups.Group.Add(Group.Create()); }