예제 #1
0
        private bool IsEventTypeCallog()
        {
            m_EventFollowUp = gvEventLog.GetFocusedRow() as CTScEventAndFollowUpLog;
            if (m_EventFollowUp == null)
                return false;

            if (m_EventFollowUp.event_type.Equals("Call Log"))
                return true;

            return false;
        }
예제 #2
0
        private void toolTipController1_GetActiveObjectInfo(object sender, DevExpress.Utils.ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            var view = gvEventLog;
            if (view == null) return;

            var info = view.CalcHitInfo(e.ControlMousePosition);
            CTScEventAndFollowUpLog followUp = gvEventLog.GetRow(info.RowHandle) as CTScEventAndFollowUpLog;

            if (info.InRow && prevEventFollowUp != followUp) {
                int x = info.HitPoint.X + 20;
                int y = info.HitPoint.Y + 20;
                Point location = new Point { X = x, Y = y };
                string htmlToolTipContent = TooltipUtility.GetEventFollowUpTooltip(followUp);
                htmlToolTip1.Show("Loading.......", htmlToolTipContent, this, location);
            }
            prevEventFollowUp = followUp;
        }
예제 #3
0
 /// <summary>
 /// Sets the focused view instance of the grid. Instantiates the objects that can be used for data manipulation.
 /// </summary>
 private void SetFocusedViewInstance()
 {
     m_EventFollowUp = null;
     GridView objGridView = (GridView) gcEventLog.FocusedView;
     m_EventFollowUp = (CTScEventAndFollowUpLog) objGridView.GetFocusedRow();
 }