コード例 #1
0
        /// <summary>
        /// Initialize a new instance of the MenuRadioButtonController class.
        /// </summary>
        /// <param name="viewManager">Owning view manager instance.</param>
        /// <param name="target">Target for state changes.</param>
        /// <param name="radioButton">Drawing element that owns radio button display.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public MenuRadioButtonController(ViewContextMenuManager viewManager,
                                         ViewBase target,
                                         ViewDrawMenuRadioButton radioButton,
                                         NeedPaintHandler needPaint)
        {
            Debug.Assert(viewManager != null);
            Debug.Assert(target != null);
            Debug.Assert(radioButton != null);
            Debug.Assert(needPaint != null);

            ViewManager      = viewManager;
            _target          = target;
            _menuRadioButton = radioButton;
            NeedPaint        = needPaint;
        }
コード例 #2
0
        /// <summary>
        /// Initialize a new instance of the MenuRadioButtonController class.
        /// </summary>
        /// <param name="viewManager">Owning view manager instance.</param>
        /// <param name="target">Target for state changes.</param>
        /// <param name="radioButton">Drawing element that owns radio button display.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public MenuRadioButtonController(ViewContextMenuManager viewManager,
                                         ViewBase target,
                                         ViewDrawMenuRadioButton radioButton,
                                         NeedPaintHandler needPaint)
        {
            Debug.Assert(viewManager != null);
            Debug.Assert(target != null);
            Debug.Assert(radioButton != null);
            Debug.Assert(needPaint != null);

            _viewManager = viewManager;
            _target = target;
            _menuRadioButton = radioButton;
            NeedPaint = needPaint;
        }