private SidebarDongleController(ElementControlBehavior parent, IBlogPostSidebarContext sidebarContext)
        {
            _parent = parent;
            _sidebarContext = sidebarContext;
            _sidebarContext.SidebarVisibleChanged += new EventHandler(_sidebarContext_SidebarVisibleChanged);

            _dongle = new PropertiesDongleControl();
            _parent.Controls.Add(_dongle);
            _dongle.Click += new EventHandler(_dongle_Click);
            _dongle.Visible = !_sidebarContext.SidebarVisible;

            AttachPropertiesDongle();
        }
Пример #2
0
        private SidebarDongleController(ElementControlBehavior parent, IBlogPostSidebarContext sidebarContext)
        {
            _parent         = parent;
            _sidebarContext = sidebarContext;
            _sidebarContext.SidebarVisibleChanged += new EventHandler(_sidebarContext_SidebarVisibleChanged);

            _dongle = new PropertiesDongleControl();
            _parent.Controls.Add(_dongle);
            _dongle.Click  += new EventHandler(_dongle_Click);
            _dongle.Visible = !_sidebarContext.SidebarVisible;

            AttachPropertiesDongle();
        }
Пример #3
0
 public FocusControl(ElementControlBehavior parent)
 {
     _parent = parent;
     _parent.ElementSizeChanged += new EventHandler(_parent_ElementSizeChanged);
     focusPainter = new ElementFocusPainter();
 }
 public static SidebarDongleController AttachPropertiesDongle(ElementControlBehavior parent, IBlogPostSidebarContext sidebarContext)
 {
     return new SidebarDongleController(parent, sidebarContext);
 }
Пример #5
0
 public FocusControl(ElementControlBehavior parent)
 {
     _parent = parent;
     _parent.ElementSizeChanged += new EventHandler(_parent_ElementSizeChanged);
     focusPainter = new ElementFocusPainter();
 }
Пример #6
0
 public static SidebarDongleController AttachPropertiesDongle(ElementControlBehavior parent, IBlogPostSidebarContext sidebarContext)
 {
     return(new SidebarDongleController(parent, sidebarContext));
 }