Пример #1
0
 private void ultraStatusBar1_MouseLeaveElement(object sender, Infragistics.Win.UIElementEventArgs e)
 {
     if (e.Element is PanelUIElement)
     {
         PanelUIElement ele = e.Element as PanelUIElement;
         if (ele.Panel.Key.Equals("SupportInfo"))
         {
             ele.Panel.Appearance.FontData.Underline = Infragistics.Win.DefaultableBoolean.False;
         }
     }
 }
Пример #2
0
        private void grdDataServiceComponent_MouseLeaveElement(object sender, Infragistics.Win.UIElementEventArgs e)
        {
            // if we are not leaving a cell, then don't anything
            if (!(e.Element is CellUIElement))
            {
                return;
            }

            // prevent the timer from ticking again
            _customizedToolTip.StopTimerToolTip();

            // destroy the tooltip
            _customizedToolTip.DestroyToolTip(this);
        }
Пример #3
0
        private void grdData_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)
        {
            if (!(e.Element is CellUIElement))
            {
                return;
            }

            UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell;

            if (cell.Row.Cells["Detalle"].Value == null)
            {
                return;
            }

            string detalle = cell.Row.Cells["Detalle"].Value.ToString();

            txtDetalle.Text = detalle;
        }
Пример #4
0
        private void grdDataServiceComponent_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)
        {
            OperationResult             objOperationResult    = new OperationResult();
            ServiceBL                   oServiceBL            = new ServiceBL();
            List <ServiceComponentList> oServiceComponentList = new List <ServiceComponentList>();
            StringBuilder               Cadena = new StringBuilder();


            // if we are not entering a cell, then don't anything
            if (!(e.Element is CellUIElement))
            {
                return;
            }

            // find the cell that the cursor is over, if any
            UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell;

            if (cell != null)
            {
                int categoryId = int.Parse(cell.Row.Cells["i_CategoryId"].Value.ToString());
                oServiceComponentList = oServiceBL.GetServiceComponentByCategoryId(ref objOperationResult, categoryId, _serviceId);


                if (categoryId != -1)
                {
                    foreach (var item in oServiceComponentList)
                    {
                        Cadena.Append(item.v_ComponentName);
                        Cadena.Append("\n");
                    }

                    _customizedToolTip.AutomaticDelay = 1;
                    _customizedToolTip.AutoPopDelay   = 20000;
                    _customizedToolTip.ToolTipMessage = Cadena.ToString();
                    _customizedToolTip.StopTimerToolTip();
                    _customizedToolTip.StartTimerToolTip();
                }
            }
        }
Пример #5
0
 private void grdData_MouseLeaveElement(object sender, Infragistics.Win.UIElementEventArgs e)
 {
 }