Exemplo n.º 1
0
        public override void LoadSettings()
        {
            base.LoadSettings();

            var settings = new ToDoSettings(ModuleConfiguration);
            softDeleteTodos.Checked = settings.SoftDeleteToDos;
            ownerTypeList.SelectedIndex = (settings.OwnerType == OwnerType.Module)
                                                ? 0
                                                : 1;
        }
Exemplo n.º 2
0
 public override void UpdateSettings()
 {
     var settings = new ToDoSettings(ModuleConfiguration)
                         {
                             SoftDeleteToDos = softDeleteTodos.Checked,
                             OwnerType = (ownerTypeList.SelectedIndex == 0)
                                         ? OwnerType.Module
                                         : OwnerType.User
                         };
     settings.Save();
 }
Exemplo n.º 3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            _settings = new ToDoSettings(ModuleContext.Configuration);
            _ownerId = (_settings.OwnerType == OwnerType.Module)
                                ? ModuleContext.ModuleId
                                : ModuleContext.PortalSettings.UserId;

            if (_settings.SoftDeleteToDos)
            {
                deletedFilter.Visible = true;
            }

            if (!IsPostBack)
            {
                BindGrid();
            }
        }