Exemple #1
0
        private void _VerifyYears(string from, string to)
        {
            _gLib._SendKeysUDWin("", this.wRetirementStudio.wEntrySetup.grid, "{End}", 0, ModifierKeys.Control, false);
            _gLib._SendKeysUDWin("", this.wRetirementStudio.wEntrySetup.grid, "{PageUp}{PageUp}{PageUp}{PageUp}{PageUp}{PageUp}{PageUp}", 0);

            int col = _fp._ReturnSelectColIndex(this.wRetirementStudio.wEntrySetup.grid);

            if (from == "")
            {
                from = "0";
            }

            int expected = Convert.ToInt32(to) - Convert.ToInt32(from) + 1;

            if (expected != col)
            {
                _gLib._MsgBoxYesNo("", "please check the number of this table, from2 is: < " + from + " >, and to2 is < " + to + " >");
            }

            _gLib._SendKeysUDWin("", this.wRetirementStudio.wEntrySetup.grid, "{Home}", 0, ModifierKeys.Control, false);
        }