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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
 public FocusControl(ElementControlBehavior parent)
 {
     _parent = parent;
     _parent.ElementSizeChanged += new EventHandler(_parent_ElementSizeChanged);
     focusPainter = new ElementFocusPainter();
 }
Ejemplo n.º 6
0
 public static SidebarDongleController AttachPropertiesDongle(ElementControlBehavior parent, IBlogPostSidebarContext sidebarContext)
 {
     return(new SidebarDongleController(parent, sidebarContext));
 }