/// <summary>
        /// Process the FILTERS Section
        /// </summary>
        /// <param name="xmlSimpleElement"></param>
        protected void ReadFilters(XmlSimpleElement xmlSimpleElement)
        {
            foreach (XmlSimpleElement childElement in xmlSimpleElement.ChildElements)
            {
                switch (childElement.TagName)
                {
                case V_FILTERS_STARTDATE:
                    _startDate = Convert.ToDateTime(childElement.Text);
                    break;

                case V_FILTERS_ENDDATE:
                    _endDate = Convert.ToDateTime(childElement.Text);
                    break;

                case V_FILTER_TYPE:
                    _subtype = (eHistoryType)childElement.TextAsInt;
                    break;

                case V_FILTERS_DAYS:
                    _days = childElement.TextAsInt;
                    break;

                default:
                    break;
                }
            }
        }
Example #2
0
        public void ScrollToLineNumber(int lineNumber, eHistoryType historyType = eHistoryType.Always)
        {
            int lineIndex = this.GetLineIndex(lineNumber);

            if (lineIndex >= 0)
            {
                ScrollToLineIndex(lineIndex, historyType);
            }
        }
        public HistoryReportDefinition() : base()
        {
            // Set the default name for this report in the header section
            ExportSection headerSection = GetReportSection(ExportSection.eSectionType.header);

            headerSection.FormattedText.RawText = "Audit History Report";
            //
            _name       = "Audit History Report";
            _reportType = eReportType.history;
            _subtype    = eHistoryType.lastaudit;
            _startDate  = new DateTime(0);
            _endDate    = new DateTime(0);
            _days       = 7;

            // Initialize the data set
            _reportDataSet.DataSetName = "historyDataSet";

            // Create the tables, columns and relationships
            CreateTables();
        }
        public SMSContactDlg(bool smsDlg)
        {
            InitializeComponent();
            if (smsDlg)
            {
                m_historyType = eHistoryType.eHistoryType_SMS;
                m_tab         = eTabs.eTab_History;
            }
            else
            {
                m_historyType      = eHistoryType.eHistoryType_Phone;
                HistoryBtn.Visible = false;
                m_tab = eTabs.eTab_All;
            }

            m_contactFilter = "";
            m_phoneNumber   = "";

            m_HxXmlDoc = new XmlDocument();
            showKeypad(false);
        }
Example #5
0
        public void ScrollToLineIndex(int lineIndex, eHistoryType historyType = eHistoryType.Always)
        {
            if (this.SelectionStart != lineIndex)
            {
                bool scrolled = false;
                if (lineIndex < this.ScrollPosition || lineIndex > this.GetLastVisibleLineIndex())
                {
                    //Line isn't currently visible, scroll it to the middle of the viewport
                    this.ScrollPosition = lineIndex - this.GetNumberVisibleLines() / 2;
                    scrolled            = true;
                }

                if (historyType == eHistoryType.Always || scrolled && historyType == eHistoryType.OnScroll)
                {
                    _history.AddHistory(this.SelectionStart);
                }
                this.SelectionStart  = lineIndex;
                this.SelectionLength = 0;
                if (historyType == eHistoryType.Always || scrolled && historyType == eHistoryType.OnScroll)
                {
                    _history.AddHistory(this.SelectionStart);
                }
            }
        }
Example #6
0
 public void ScrollToLineNumber(int lineNumber, eHistoryType historyType = eHistoryType.Always)
 {
     this.ctrlTextbox.ScrollToLineNumber(lineNumber, historyType);
 }
Example #7
0
 public void ScrollToAddress(int lineNumber, eHistoryType historyType = eHistoryType.Always, bool scrollToTop = false, bool forceScroll = false)
 {
     this.ctrlTextbox.ScrollToAddress(lineNumber, historyType, scrollToTop, forceScroll);
 }
Example #8
0
 public void ScrollToLineIndex(int lineIndex, eHistoryType historyType = eHistoryType.Always, bool scrollToTop = false, bool forceScroll = false)
 {
     this.ctrlTextbox.ScrollToLineIndex(lineIndex, historyType, scrollToTop, forceScroll);
 }
 public void ScrollToLineNumber(int lineNumber, eHistoryType historyType = eHistoryType.Always, bool scrollToTop = false)
 {
     this.ctrlTextbox.ScrollToLineNumber(lineNumber, historyType, scrollToTop);
 }