Пример #1
0
 void collapseButton_Click(object sender, EventArgs e)
 {
     if (tileControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Always)
     {
         ItemsHideHelper.Hide(new object[] { tileControlLCI }, buttonHide);
         return;
     }
     if (tileControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Never)
     {
         ItemsHideHelper.Expand(new object[] { tileControlLCI }, buttonHide);
         return;
     }
 }
Пример #2
0
 private void buttonHide_Click(object sender, EventArgs e)
 {
     if (chartControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Always)
     {
         ItemsHideHelper.HideCore(new object[] { chartControlLCI }, buttonHide, true);
         return;
     }
     if (chartControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Never)
     {
         ItemsHideHelper.ExpandCore(new object[] { chartControlLCI }, buttonHide, true);
         return;
     }
 }
Пример #3
0
 void collapseButton_Click(object sender, EventArgs e)
 {
     if (lcgChart.Visibility == XtraLayout.Utils.LayoutVisibility.Always)
     {
         ItemsHideHelper.HideCore(new object[] { lcgChart }, buttonHide, true);
         return;
     }
     if (lcgChart.Visibility == XtraLayout.Utils.LayoutVisibility.Never)
     {
         ItemsHideHelper.ExpandCore(new object[] { lcgChart }, buttonHide, true);
         return;
     }
 }
Пример #4
0
 void simpleLabelItem1_MouseDown(object sender, MouseEventArgs e)
 {
     if (tileControlLayoutItem.Visibility == XtraLayout.Utils.LayoutVisibility.Always)
     {
         ItemsHideHelper.Hide(hideItemCollection, buttonHide);
         return;
     }
     if (tileControlLayoutItem.Visibility == XtraLayout.Utils.LayoutVisibility.Never)
     {
         ItemsHideHelper.Expand(hideItemCollection, buttonHide);
         return;
     }
 }
Пример #5
0
        void hideButton_Click(object sender, EventArgs e)
        {
            if (tileControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Always)
            {
                ItemsHideHelper.Hide(hideItemCollection, hideButton);
                productsSLI.Padding = new XtraLayout.Utils.Padding(25, 2, 10, 10);

                return;
            }
            if (tileControlLCI.Visibility == XtraLayout.Utils.LayoutVisibility.Never)
            {
                ItemsHideHelper.Expand(hideItemCollection, hideButton);
                productsSLI.Padding = new XtraLayout.Utils.Padding(2, 2, 10, 10);
                return;
            }
        }