private void SetVisibility() { var behavior = BaseBehavior.GetBehavior(CurrentRole); btEditPost.Visible = behavior.CanEdit; btNewPost.Visible = behavior.CanEdit; btPublishPost.Visible = behavior.CanPublish; btRejectPost.Visible = behavior.CanReject; btSubmitPost.Visible = behavior.CanSubmit; }