Beispiel #1
0
        private void GroupControl_CustomButtonClick(object sender, DevExpress.XtraBars.Docking2010.BaseButtonEventArgs e)
        {
            BarItem item = e.Button.Properties.Tag as BarItem;

            if (item != null)
            {
                item.PerformClick();
            }
        }
Beispiel #2
0
        void OnSharedBarItemItemClick(object sender, ItemClickEventArgs e)
        {
            BarItem sharedBarItem = (BarItem)sender;
            BarItem activeBarItem = PrepareToClickAndGetActiveItem(sharedBarItem);

            if (activeBarItem != null)
            {
                activeBarItem.PerformClick();
            }
        }
Beispiel #3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            Sys_Button sys_Button = ButtonList.Find(b => b.Button_Sub == "Save");

            if (sys_Button != null)
            {
                BarItem barItem = (BarItem)sys_Button.Button_BarItem;
                if (barItem != null)
                {
                    barItem.PerformClick();
                    timer1.Enabled = false;
                }
            }
        }
Beispiel #4
0
 void OnSharedBarItemItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         BarItem sharedBarItem = (BarItem)sender;
         BarItem activeBarItem = PrepareToClickAndGetActiveItem(sharedBarItem);
         if (activeBarItem != null)
         {
             activeBarItem.PerformClick();
         }
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message, "VideoRent", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Beispiel #5
0
 public void PerformClick()
 {
     _barItem.PerformClick();
 }