Exemplo n.º 1
0
        private static bool GetResetPending(System.Windows.Forms.DataGridViewRow row)
        {
            if (row == null) return true;

            if (row.IsNewRow)
            {
                if (row.Index == 0) ExplorerForm.ResetExplorerForm();
                return true;
            }

            return false;
        }
Exemplo n.º 2
0
        private static void SaveAsLastFileOpened(string fileName)
        {
            if (fileName != null)
            {
                Dapper.DynamicParameters param = new Dapper.DynamicParameters();

                param.Add("@" + Constants.COLUMN_USER_ID, UserHelper.UserPropertiesModel.iUserID);
                param.Add("@" + Constants.COLUMN_USER_LAST_FILENAME_OPENED, fileName);
                param.Add("@" + Constants.COLUMN_USER_LAST_TAB_FOCUS, UserHelper.UserStateModel.nvLastTabFocus);
                param.Add("@" + Constants.COLUMN_USER_LAST_TABLE_FOCUS, UserHelper.UserStateModel.nvLastTableFocus);
                param.Add("@" + Constants.COLUMN_USER_BUILD_VERSION, Constants.BUILD_VERSION);

                DataAccess.InsertUserStateLogEntry(param);
                UserHelper.UserStateModel.nvLastFilenameOpened = fileName;
                ExplorerForm.ResetExplorerForm();
            }
        }
Exemplo n.º 3
0
 private static void ComparisonReset()
 {
     SetSpreadsheetChanges(true);
     ExplorerForm.ResetExplorerForm();
 }