private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            Point       p    = grdView.GridControl.PointToClient(MousePosition);
            GridHitInfo info = grdView.CalcHitInfo(p);

            if (info.HitTest != GridHitTest.Column)
            {
                SelectReceipt();
            }
        }
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            Point p = grdView.GridControl.PointToClient(MousePosition);

            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = grdView.CalcHitInfo(p);

            if (info.HitTest != DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitTest.Column)
            {
                SelectCustomer();
            }
        }
Пример #3
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            lastActiveDateTime = DateTime.Now;

            Point       p    = grdView.GridControl.PointToClient(MousePosition);
            GridHitInfo info = grdView.CalcHitInfo(p);

            if (info.HitTest != GridHitTest.Column)
            {
                SelectItem();
            }
        }
Пример #4
0
        void gridView1_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView gv = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            Point pt = gv.GridControl.PointToClient(MousePosition);

            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo vi = gv.CalcHitInfo(pt);
            if (vi.InRowCell || vi.InRow)
            {
                var datarowitem = (BMS_DAL.DS.BMSDS.TVesselsRow)gv.GetDataRow(vi.RowHandle);
                datarowitem.OPER  = BMS_Component.UserInfo.UserName;
                datarowitem.OP_DT = DateTime.Now;
                VesselItem item = new VesselItem();
                item.Text        = "Update Vessel";
                item.DataRowItem = datarowitem;
                switch (item.ShowDialog())
                {
                case DialogResult.OK:
                    MessageBox.Show(string.Format("Update {0} rows", this._daservice.UpdateVessel(this._dt)));
                    this._dt.Clear();
                    this._dt.Merge(_daservice.GetVessel());
                    this.BindData();
                    break;

                case DialogResult.Cancel:
                    this._dt.RejectChanges();
                    break;
                }
            }
        }
Пример #5
0
        private void gvTenders_MouseMove(object sender, MouseEventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            if (view != null)
            {
                DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(e.X, e.Y);
                if (info.InRowCell && info.Column.FieldName == COLQTY && IsMouseOverButton(info.RowHandle, COLQTY, new Point(e.X, e.Y)))
                {
                    QtyHighlightedRowHandle = info.RowHandle;
                }
                else
                {
                    QtyHighlightedRowHandle = GridControl.InvalidRowHandle;
                }

                if (info.InRowCell && info.Column.FieldName == COLTOTAL && IsMouseOverButton(info.RowHandle, COLTOTAL, new Point(e.X, e.Y)))
                {
                    TotalHighlightedRowHandle = info.RowHandle;
                }
                else
                {
                    TotalHighlightedRowHandle = GridControl.InvalidRowHandle;
                }
            }
        }
Пример #6
0
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView             obj = gridControl1.MainView as DevExpress.XtraGrid.Views.Grid.GridView;
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi  = obj.CalcHitInfo(gridControl1.PointToClient(Cursor.Position));

            // valid info?
            if (!(hi.IsValid && hi.InRowCell))
            {
                return;
            }

            // is symbol (symbol or axis) column?
            if (!(obj.FocusedColumn.FieldName == "SYMBOLNAME" | obj.FocusedColumn.FieldName == "XAXIS" | obj.FocusedColumn.FieldName == "YAXIS"))
            {
                return;
            }

            // check for null ref.
            if (obj.FocusedValue == null | string.IsNullOrEmpty(obj.FocusedValue.ToString()))
            {
                return;
            }

            if (onStartSymbolViewer != null)
            {
                onStartSymbolViewer(this, new SymbolViewerRequestedEventArgs(obj.FocusedValue.ToString().Trim()));
            }
        }
Пример #7
0
        /// <summary>
        /// 全选/全不选
        /// </summary>
        /// <param name="gridView"></param>
        /// <param name="fieldName"></param>
        /// <param name="currentStatus"></param>
        /// <returns></returns>
        private bool ClickGridCheckBox(DevExpress.XtraGrid.Views.Grid.GridView gridView, string fieldName, bool currentStatus)

        {
            try
            {
                bool result = false;

                if (gridView != null)
                {
                    gridView.PostEditor();

                    DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info;

                    Point pt = gridView.GridControl.PointToClient(Control.MousePosition);

                    info = gridView.CalcHitInfo(pt);

                    if (info.InColumn && info.Column != null && info.Column.FieldName == fieldName)
                    {
                        for (int i = 0; i < gridView.RowCount; i++)
                        {
                            gridView.SetRowCellValue(i, fieldName, !currentStatus);
                        }

                        return(true);
                    }
                }

                return(result);
            }
            catch
            {
                return(false);
            }
        }
Пример #8
0
        private void DoRowDoubleClick(DevExpress.XtraGrid.Views.Grid.GridView view, Point pt)
        {
            try
            {
                DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(pt);
                if (info.InRow || info.InRowCell)
                {
                    if (info.Column == null)
                    {
                    }
                    else
                    {
                        if (view.GetRowCellValue(info.RowHandle, "ID") == DBNull.Value)
                        {
                            return;
                        }

                        string sheet = view.GetRowCellValue(info.RowHandle, "ID").ToString();

                        GetDetils(sheet);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #9
0
 private void ShowMenu(ref DevExpress.XtraGrid.Views.Grid.GridView gridView, object sender, MouseEventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hitinfo = gridView.CalcHitInfo(e.Location);
     if (e.Button == MouseButtons.Right)
     {
         toolStripMenuItemAdd.Enabled  = true;
         toolStripMenuItemDel.Enabled  = true;
         toolStripMenuItemMvDn.Enabled = true;
         toolStripMenuItemMvUp.Enabled = true;
         if (!hitinfo.InRow)
         {
             toolStripMenuItemMvUp.Enabled = false;
             toolStripMenuItemMvDn.Enabled = false;
             toolStripMenuItemDel.Enabled  = false;
         }
         else
         {
             int[] index = gridView.GetSelectedRows();
             if (index[0] == 0)
             {
                 toolStripMenuItemMvUp.Enabled = false;
             }
             if (index[0] == gridView.RowCount - 1)
             {
                 toolStripMenuItemMvDn.Enabled = false;
             }
         }
         MenuStripOpera.Show(MousePosition);
         Console.WriteLine(CurrentgridView.Name);
     }
 }
Пример #10
0
        private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e)
        {
            gridControl1.ContextMenuStrip = null;
            DevExpress.XtraGrid.Views.Grid.GridView             view    = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hitInfo = view.CalcHitInfo(e.Point);
            num = hitInfo.RowHandle;
            if (num < 0 || num > gridView1.DataRowCount - 1)
            {
                return;
            }
            DataRow row = gridView1.GetDataRow(num);

            columnName = hitInfo.Column.Name;
            if (row != null && hitInfo.Column.Name == "SAD019")
            {
                gridControl1.ContextMenuStrip = contextMenuStrip1;
                if (gridView1.OptionsBehavior.Editable == false)
                {
                    contextMenuStrip1.Items [0].Visible = false;
                    contextMenuStrip1.Items [1].Visible = false;
                }
                else
                {
                    contextMenuStrip1.Items [0].Visible = true;
                    contextMenuStrip1.Items [1].Visible = true;
                }
            }
        }
 private void gridView1Popup_DoubleClick(object sender, EventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = gridView1Popup.CalcHitInfo(_MousePosition);//gridPopup.PointToClient(_MousePosition));
     if (info.InRow)
     {
         PopupContainerClosePopup();
     }
 }
Пример #12
0
 private void SPList_MouseUp(object sender, MouseEventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.GridView view = (DevExpress.XtraGrid.Views.Grid.GridView)GridCtrl.DefaultView;
     if (e.Button == MouseButtons.Right)
     {
         DoShowPopupMenu(view.CalcHitInfo(new Point(e.X, e.Y)));
     }
 }
 private void gridView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = gridView1.CalcHitInfo(e.X, e.Y);
     if (hi.HitTest == DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitTest.RowEdge)
     {
         resizeStartPos    = e.Y;
         resizingRowHandle = hi.RowHandle;
     }
 }
Пример #14
0
 private void GridWGR_MouseDown(object sender, MouseEventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.GridView active = sender as DevExpress.XtraGrid.Views.Grid.GridView;
     if (active != null)
     {
         hitInfo = active.CalcHitInfo(e.X, e.Y);
         dragWgr = (ViceWGR)active.GetRow(hitInfo.RowHandle);
         SelectEntity(dragWgr, null);
     }
 }
Пример #15
0
        private void grvData_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView sndr =
                sender as DevExpress.XtraGrid.Views.Grid.GridView;
            DevExpress.Utils.DXMouseEventArgs dxMouseEventArgs =
                e as DevExpress.Utils.DXMouseEventArgs;
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hitInfo =
                sndr.CalcHitInfo(dxMouseEventArgs.Location);

            if (hitInfo.InColumn)
            {
                grvData.ShowCustomFilterDialog(hitInfo.Column);
            }
        }
Пример #16
0
        /// <summary>
        ///  gridview鼠标事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridView1_MouseUp(object sender, MouseEventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            if (view == null || e.Button != MouseButtons.Right)
            {
                return;
            }

            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hitInfo = view.CalcHitInfo(new Point(e.X, e.Y));
            if (hitInfo.InRow && !view.IsGroupRow(hitInfo.RowHandle))
            {
                view.FocusedRowHandle = hitInfo.RowHandle;
                this.popupMenu1.ShowPopup(view.GridControl.PointToScreen(hitInfo.HitPoint));
            }
        }
Пример #17
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.Utils.DXMouseEventArgs                   ea   = e as DevExpress.Utils.DXMouseEventArgs;
            DevExpress.XtraGrid.Views.Grid.GridView             view = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(ea.Location);
            if (info.InRowCell)
            {
                TMGrNo = gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["TMNo"]).ToString();
                int id = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["Id"]).ToString());

                selTempRec = tempRecList.Where(i => i.Id == id).First();

                succeed = true;
                Close();
            }
        }
Пример #18
0
        private void FrmListAll_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.Utils.DXMouseEventArgs ea = e as DevExpress.Utils.DXMouseEventArgs;
            CTechCore.Tools.ControlHelpers.CustomGridControl cntrl = (CTechCore.Tools.ControlHelpers.CustomGridControl)sender;
            DevExpress.XtraGrid.Views.Grid.GridView          view  = (DevExpress.XtraGrid.Views.Grid.GridView)cntrl.MainView;
            if (view == null)
            {
                return;
            }

            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(ea.Location);
            if (info.InRow || info.InRowCell)
            {
                DialogResult = LoadEntityForm((DevExpress.XtraGrid.Views.Grid.GridView)cntrlSearch1.gridControl1.FocusedView);
            }
        }
        private void toolTipController_GetActiveObjectInfo(object sender, DevExpress.Utils.ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != gridControlPublication)
            {
                return;
            }
            DevExpress.Utils.ToolTipControlInfo info = null;
            try
            {
                DevExpress.XtraGrid.Views.Grid.GridView view = gridControlPublication.GetViewAt(e.ControlMousePosition) as DevExpress.XtraGrid.Views.Grid.GridView;
                if (view == null)
                {
                    return;
                }
                DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = view.CalcHitInfo(e.ControlMousePosition);
                if (hi.InRowCell)
                {
                    List <string> adNotes = new List <string>();

                    if (!string.IsNullOrEmpty(this.Publication.Inserts[advBandedGridViewPublication.GetDataSourceRowIndex(hi.RowHandle)].Comment))
                    {
                        adNotes.Add(this.Publication.Inserts[advBandedGridViewPublication.GetDataSourceRowIndex(hi.RowHandle)].Comment);
                    }
                    if (!string.IsNullOrEmpty(this.Publication.Inserts[advBandedGridViewPublication.GetDataSourceRowIndex(hi.RowHandle)].Section))
                    {
                        adNotes.Add(this.Publication.Inserts[advBandedGridViewPublication.GetDataSourceRowIndex(hi.RowHandle)].Section);
                    }
                    if (!string.IsNullOrEmpty(this.Publication.Inserts[advBandedGridViewPublication.GetDataSourceRowIndex(hi.RowHandle)].Deadline))
                    {
                        adNotes.Add("Deadline: " + this.Publication.Inserts[advBandedGridViewPublication.GetDataSourceRowIndex(hi.RowHandle)].DeadlineForOutput);
                    }

                    if (hi.Column == gridColumnADRate && adNotes.Count > 0)
                    {
                        info = new DevExpress.Utils.ToolTipControlInfo(new DevExpress.XtraGrid.Views.Base.CellToolTipInfo(hi.RowHandle, hi.Column, "cell"), string.Join(", ", adNotes.ToArray()));
                        info.ToolTipImage = Properties.Resources.AdNoteSmall;
                        return;
                    }
                }
            }
            finally
            {
                e.Info = info;
            }
        }
 private void gvPODetails_DoubleClick(object sender, EventArgs e)
 {
     DevExpress.Utils.DXMouseEventArgs                   ea   = e as DevExpress.Utils.DXMouseEventArgs;
     DevExpress.XtraGrid.Views.Grid.GridView             view = sender as DevExpress.XtraGrid.Views.Grid.GridView;
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(ea.Location);
     if (info.InRow || info.InRowCell)
     {
         frmReceiveStock frm = new frmReceiveStock((DataRow)view.GetDataRow(info.RowHandle));
         frm.StartPosition = FormStartPosition.CenterParent;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PurchaseOrderToGRV grv = (PurchaseOrderToGRV)purchaseOrderToGRVBindingSource.DataSource;
             grv.Reload();
             gcPOHeader.DataSource  = grv.HeaderInfo;
             gcPODetails.DataSource = grv.DetailInfo;
         }
     }
 }
Пример #21
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.Utils.DXMouseEventArgs                   ea   = e as DevExpress.Utils.DXMouseEventArgs;
            DevExpress.XtraGrid.Views.Grid.GridView             view = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(ea.Location);
            if (info.InRowCell)
            {
                int       Id = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["Id"]).ToString());
                Trademark tm = tempRecList.Where(i => i.Id == Id).First();

                string url = tm.getUrl();

                if (url.Trim() != "")
                {
                    System.Diagnostics.Process.Start(url);
                }
                else
                {
                    MessageBox.Show("Δεν υπάρχει καταχωρημένο Url για τη συγκεκριμένη εγγραφή!");
                }
            }
        }
Пример #22
0
        void gridView2_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView gv = sender as DevExpress.XtraGrid.Views.Grid.GridView;
            Point pt = gv.GridControl.PointToClient(MousePosition);

            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo vi = gv.CalcHitInfo(pt);
            if (vi.InRowCell || vi.InRow)
            {
                var selecteddatarow = (BMS_DAL.DS.BMSDS.TFixturesRow)((DataRowView)this.bindingSource1.Current).Row;
                var datarowitem     = (BMS_DAL.DS.BMSDS.TInvoicesRow)gv.GetDataRow(vi.RowHandle);
                datarowitem.OPER  = BMS_Component.UserInfo.UserName;
                datarowitem.OP_DT = DateTime.Now;
                InvoiceItem item = new InvoiceItem();
                item.Text                      = "Update Invoice";
                item.FixDataRow                = selecteddatarow;
                item.DataRowItem               = datarowitem;
                item.InvoiceDetailDV           = _ds.TInvoiceDetails.DefaultView;
                item.InvoiceDetailDV.RowFilter = string.Format("INVOICE_ID='{0}'", datarowitem.ID);
                switch (item.ShowDialog())
                {
                case DialogResult.OK:
                    MessageBox.Show(string.Format("Update {0} rows", this._daservice.UpdateFixtureWithRelation(_ds)));
                    this._ds.TFixtures.Clear();
                    this._ds.TInvoices.Clear();
                    this._ds.TInvoiceDetails.Clear();
                    this._ds.Merge(_daservice.GetFixtureWithRelation());
                    this.BindData1();
                    this.BindData2();
                    break;

                case DialogResult.Cancel:
                    this._ds.RejectChanges();
                    break;
                }
            }
        }
Пример #23
0
        private void grdUsers_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.Utils.DXMouseEventArgs       ea    = e as DevExpress.Utils.DXMouseEventArgs;
            DevExpress.XtraGrid.GridControl         cntrl = (DevExpress.XtraGrid.GridControl)sender;
            DevExpress.XtraGrid.Views.Grid.GridView view  = (DevExpress.XtraGrid.Views.Grid.GridView)cntrl.MainView;
            if (view == null)
            {
                return;
            }

            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo info = view.CalcHitInfo(ea.Location);
            if (info.InRow || info.InRowCell)
            {
                try
                {
                    DataRow dr = vwUsers.GetDataRow(view.GetSelectedRows()[0]);
                    LoadUser(new User(dr.Field <int>("AutoIndex")));
                }
                catch (Exception)
                {
                    MessageBox.Show($"Error: {e.ToString()}");
                }
            }
        }
 private void TpCtlr_GetActiveObjectInfo(object sender, DevExpress.Utils.ToolTipControllerGetActiveObjectInfoEventArgs e)
 {
     if (e.SelectedControl != this.gridControl1)
     {
         return;
     }
     DevExpress.XtraGrid.Views.Grid.GridView view
         = this.gridControl1.GetViewAt(e.ControlMousePosition)
           as DevExpress.XtraGrid.Views.Grid.GridView;
     if (view == null)
     {
         return;
     }
     DevExpress.Utils.ToolTipControlInfo info = null;
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = view.CalcHitInfo(e.ControlMousePosition);
     //if( hi.HitTest == DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitTest.RowIndicator )
     if (hi.HitTest == DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitTest.RowCell)
     {
         if (hi.RowHandle == -2147483646)
         {
             return;
         }
         object o    = hi.HitTest.ToString( ) + hi.RowHandle.ToString( );
         string text = "Row " + hi.RowHandle.ToString( );
         DevExpress.Utils.SuperToolTip stt = new DevExpress.Utils.SuperToolTip( );
         stt.AllowHtmlText        = DevExpress.Utils.DefaultBoolean.Default;
         stt.FixedTooltipWidth    = false;
         stt.MaxWidth             = 400;
         stt.DistanceBetweenItems = 10;
         DevExpress.Utils.SuperToolTipSetupArgs args = new DevExpress.Utils.SuperToolTipSetupArgs( );
         args.AllowHtmlText       = DevExpress.Utils.DefaultBoolean.Default;
         args.ShowFooterSeparator = true;
         {
             //var pnCellValue = view.GetRowCellValue( hi.RowHandle, MetadataItemFQN.OBJECT_FIELDNAME );
             //var ptypeCellValue = view.GetRowCellValue( hi.RowHandle, MetadataItemFQN.PARENT_TYPE_FIELDNAME );
             //var fqnCellValue = view.GetRowCellValue( hi.RowHandle, MetadataItemFQN.NAMEFULLQUALIFIED_FIELDNAME );
             //var nCellValue = view.GetRowCellValue( hi.RowHandle, MetadataItemFQN.FIELD_FIELDNAME );
             //var typeCellValue = view.GetRowCellValue( hi.RowHandle, MetadataItemFQN.TYPE_FIELDNAME );
             //
             //args.Title.Text = typeCellValue?.ToString( ) + ": " + nCellValue?.ToString( );
             //args.Contents.ImageOptions.Alignment = DevExpress.Utils.ToolTipImageAlignment.Default;
             //args.Contents.Text = fqnCellValue?.ToString( );
             //args.Footer.Text = ptypeCellValue?.ToString( ) + ": " + pnCellValue?.ToString( );
             //if( typeCellValue.ToString( ) == "Field" )
             //{
             //   //args.Title.ImageOptions.Image = fld_noaction_gray_img16x16;
             //   //args.Contents.ImageOptions.Image = fld_noaction_gray_img64x64;
             //   //args.Footer.ImageOptions.Image = tbl_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "Table" )
             //{
             //   //args.Title.ImageOptions.Image = tbl_noaction_red_img16x16;
             //   //args.Contents.ImageOptions.Image = tbl_noaction_red_img64x64;
             //   //args.Footer.ImageOptions.Image = sch_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "View" )
             //{
             //   //args.Title.ImageOptions.Image = vw_noaction_red_img16x16;
             //   //args.Contents.ImageOptions.Image = vw_noaction_red_img64x64;
             //   //args.Footer.ImageOptions.Image = sch_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "ForeignKey" )
             //{
             //   //args.Title.ImageOptions.Image = fk_noaction_gray_img16x16;
             //   //args.Contents.ImageOptions.Image = fk_noaction_gray_img64x64;
             //   //args.Footer.ImageOptions.Image = tbl_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "Procedure" )
             //{
             //   //args.Title.ImageOptions.Image = proc_noaction_blue_img16x16;
             //   //args.Contents.ImageOptions.Image = proc_noaction_blue_img64x64;
             //   //args.Footer.ImageOptions.Image = sch_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "Synonym" )
             //{
             //   //args.Title.ImageOptions.Image = syn_noaction_yellow_img16x16;
             //   //args.Contents.ImageOptions.Image = syn_noaction_yellow_img64x64;
             //   //args.Footer.ImageOptions.Image = sch_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "Schema" )
             //{
             //   //args.Title.ImageOptions.Image = sch_noaction_red_img16x16;
             //   //args.Contents.ImageOptions.Image = sch_noaction_red_img64x64;
             //   //args.Footer.ImageOptions.Image = db_noaction_red_img16x16;
             //}
             //else if( typeCellValue.ToString( ) == "Database" )
             //{
             //   //args.Title.ImageOptions.Image = db_noaction_red_img16x16;
             //   //args.Contents.ImageOptions.Image = db_noaction_red_img64x64;
             //   //args.Footer.ImageOptions.Image = db_noaction_red_img16x16;
             //}
         }
         stt.Setup(args);
         info             = new DevExpress.Utils.ToolTipControlInfo(o, text);
         info.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip;
         info.SuperTip    = stt;
     }
     if (info != null)
     {
         e.Info = info;
     }
 }