public void Merge_Click(object o, System.EventArgs e) { Group master = new Group(int.Parse(this.uiMasterGroupAutoComplete.Value)); Group merge = new Group(int.Parse(this.uiMergeGroupAutoComplete.Value)); if (merge.BrandK > 0) throw new DsiUserFriendlyException("can't merge a brand group."); if (master.PrivateChat || master.PrivateGroupPage || master.PrivateMemberList || merge.PrivateChat || merge.PrivateGroupPage || merge.PrivateMemberList) throw new DsiUserFriendlyException("Can't merge private groups. Make sure both groups are FULLY public before merging."); master.MergeAndDelete(merge); Cambro.Web.Helpers.WriteAlertFooter(master.Url()); }