Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design and code a project that displays the location of videos using radio butto

ID: 3761065 • Letter: D

Question

Design and code a project that displays the location of videos using radio buttons. Use a radio button for each of the movie categories and a label to display the aisle number. A check box will allow the user to display or bide a message for members. When the check box is selected, a message stating ''All Members Receive a 10% Discount'' will appear. Include buttons (with keyboard access keys) for Clear and Exit The Clear button should be set as the Accept button and the Exit as the Cancel button. Place it label on the form in a 24-point font that reads ''Video Bonanza''. Use a line to separate the label from the rest of the interface. Include an image in a picture box.

Explanation / Answer

//TODO 11 - FeedbackControlSelectionPolicy /// /// This FeedbackControlSelectionPolicy provides for hiding of the adorner when the /// Feedback control is being resized or moved. /// internal class FeedbackControlSelectionPolicy : PrimarySelectionPolicy { private bool _isFocused; public FeedbackControlSelectionPolicy() { } /// /// Determines if an item is part of the policy. Called back from /// OnPolicyItemsChanged on all the items in e.ItemsAdded /// /// /// /// protected override bool IsInPolicy(Selection selection, ModelItem item) { bool inPolicy = base.IsInPolicy(selection, item); return inPolicy && !_isFocused; } /// /// Called when this policy is activated. In order to determine /// which items are in/out of a policy, we need to subscribe to events. /// The base class, PrimarySelectionPolicy, subscribes to /// changes in selection. Additionally we need to subscribe to changes /// in the focused task so we can disable during resize/move. /// protected override void OnActivated() { this.Context.Items.Subscribe(OnFocusedTaskChanged); base.OnActivated(); } /// /// When the policy is no longer in use, we unsubscribe from the events we hooked up to /// in Activated. /// protected override void OnDeactivated() { this.Context.Items.Unsubscribe(OnFocusedTaskChanged); base.OnDeactivated(); } // If the Feedback control is selected and there is a FocusedTask like moving or // resizing the control, the Feedback control will be added to the Removed // parameter and the adorner will be removed from the Feeback control. // During the drag or resize operation this code will be bypassed on repeated calls until // the move or resize is completed. // If the Feedback control is selected and there is no FocusedTask like moving or being // resized, the Feedback control will be added to the Added parameter and the adorner // will be shown on the Feedback control. /// /// Tasks are operations on tools, for example, the drag resize task is an operation /// on the SelectionTool, and the click draw task is an operation on the CreationTool. /// /// When a focused task is active we want to hide the ratings control because /// we don't know what the interaction will be. /// /// private void OnFocusedTaskChanged(FocusedTask f) { bool nowFocused = f.Task != null; if (nowFocused != _isFocused) { _isFocused = nowFocused; Selection selection = Context.Items.GetValue(); if (selection.PrimarySelection != null) { ModelItem[] removed; ModelItem[] added; if (nowFocused) { removed = new ModelItem[] { selection.PrimarySelection }; added = new ModelItem[0]; } else { removed = new ModelItem[0]; added = new ModelItem[] { selection.PrimarySelection }; } OnPolicyItemsChanged(new PolicyItemsChangedEventArgs(this, added, removed)); } } } } }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote