Ejemplo n.º 1
0
 /// <summary> 
 /// Event handler for the Expando StateChanged event
 /// </summary>
 /// <param name="sender">The object that fired the event</param>
 /// <param name="e">An ExpandoEventArgs that contains the event data</param>
 private void expando_StateChanged(object sender, ExpandoEventArgs e)
 {
     this.OnExpandoStateChanged(e);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the ExpandoRemoved event
        /// </summary>
        /// <param name="e">An ExpandoEventArgs that contains the event data</param>
        protected virtual void OnExpandoRemoved(ExpandoEventArgs e)
        {
            // remove the control from the ControlCollection if it hasn't already
            if (this.Controls.Contains(e.Expando))
            {
                this.Controls.Remove(e.Expando);
            }

            // remove the StateChanged listener
            e.Expando.StateChanged -= new ExpandoEventHandler(this.expando_StateChanged);

            // update the layout of the controls
            this.DoLayout();

            //
            if (ExpandoRemoved != null)
            {
                ExpandoRemoved(this, e);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Occurs when the value of an Expandos Collapsed property changes
 /// </summary>
 /// <param name="e">An ExpandoEventArgs that contains the event data</param>
 protected virtual void OnExpandoStateChanged(ExpandoEventArgs e)
 {
     this.DoLayout(true);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Handles the StateChanged event of the expando control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="XPExplorerBar.ExpandoEventArgs"/> instance containing the event data.</param>
 /// <remarks>Documented by Dev08, 2009-03-04</remarks>
 private void expando_StateChanged(object sender, ExpandoEventArgs e)
 {
     CheckHeight(e.Expando);
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Raises the ExpandoAdded event
        /// </summary>
        /// <param name="e">An ExpandoEventArgs that contains the event data</param>
        protected virtual void OnExpandoAdded(ExpandoEventArgs e)
        {
            // add the expando to the ControlCollection if it hasn't already
            if (!this.Controls.Contains(e.Expando))
            {
                this.Controls.Add(e.Expando);
            }

            // set anchor styles
            e.Expando.Anchor = (AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right);

            // tell the Expando who's its daddy...
            e.Expando.TaskPane = this;
            e.Expando.SystemSettings = this.systemSettings;

            // listen for collapse/expand events
            e.Expando.StateChanged += new ExpandoEventHandler(this.expando_StateChanged);

            // update the layout of the controls
            this.DoLayout();

            //
            if (ExpandoAdded != null)
            {
                ExpandoAdded(this, e);
            }
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Raises the WatermarkChanged event
 /// </summary>
 /// <param name="e">An ExpandoEventArgs that contains the event data</param>
 protected virtual void OnWatermarkChanged(ExpandoEventArgs e)
 {
     if (WatermarkChanged != null)
     {
         WatermarkChanged(this, e);
     }
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Raises the TitleImageChanged event
 /// </summary>
 /// <param name="e">An ExpandoEventArgs that contains the event data</param>
 protected virtual void OnTitleImageChanged(ExpandoEventArgs e)
 {
     if (TitleImageChanged != null)
     {
         TitleImageChanged(this, e);
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Raises the StateChanged event
 /// </summary>
 /// <param name="e">An ExpandoStateChangedEventArgs that contains the event data</param>
 protected virtual void OnStateChanged(ExpandoEventArgs e)
 {
     if (StateChanged != null)
     {
         StateChanged(this, e);
     }
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Raises the SpecialGroupChanged event
 /// </summary>
 /// <param name="e">An ExpandoEventArgs that contains the event data</param>
 protected virtual void OnSpecialGroupChanged(ExpandoEventArgs e)
 {
     if (SpecialGroupChanged != null)
     {
         SpecialGroupChanged(this, e);
     }
 }
Ejemplo n.º 10
0
 private void expando_StateChanged(object sender, ExpandoEventArgs e)
 {
     SetExpandoCollapsed((Expando)sender);
     SetExpandoImage((Expando)sender, StringToBitmap(((Expando)sender).Name.ToString().Trim()), StringToBitmap(((Expando)sender).Name.ToString().Trim() + "1"));
     Expando expando = (Expando)sender;
     for (int i = 0; i < expando.Items.Count; i++)
         ((TaskItem)expando.Items[i]).Image = null;
 }