private void ConfigureControlsForParentType(ConfigureControlsForParnetType obj) { if (obj.Type == ConfigureControlsForParnetType.ParentType.Tag || obj.Type == ConfigureControlsForParnetType.ParentType.Library) { AddNoteButtonVisible = false; } else if (obj.Type == ConfigureControlsForParnetType.ParentType.Notebook) { AddNoteButtonVisible = true; } }
private void ConfigureControlsForParentType(ConfigureControlsForParnetType obj) { if (obj.Type == ConfigureControlsForParnetType.ParentType.Tag || obj.Type == ConfigureControlsForParnetType.ParentType.Library) { AddNoteContextMenuButtonVisible = false; AddNoteButtonVisible = false; } else if (obj.Type == ConfigureControlsForParnetType.ParentType.Notebook) { if (Hub.Instance.EncryptionManager.SecureNotesEnabled) { AddNoteButtonVisible = false; AddNoteContextMenuButtonVisible = true; } else { AddNoteContextMenuButtonVisible = false; AddNoteButtonVisible = true; } } }