예제 #1
0
        private void DeleteHangout()
        {
            if (HangoutId > Null.NullInteger)
            {
                // delete the related content item
                var ctlHangout = new DNNHangoutController();
                ctlHangout.DeleteContentItem(HangoutId);

                // delete the module setting
                var ctlModule = new ModuleController();
                if (Settings.ContainsKey(DNNHangoutController.SETTINGS_HANGOUT_ID))
                {
                    ctlModule.DeleteTabModuleSetting(TabModuleId, DNNHangoutController.SETTINGS_HANGOUT_ID);
                }
                ModuleController.SynchronizeModule(ModuleId);
            }
        }