Ejemplo n.º 1
0
        public Dictionary <string, string> ExportSettings(bool suppressWarnings)
        {
            Dictionary <string, string> SettingsDict = new Dictionary <string, string>();

            SettingsDict.Add("WordList", WordList);
            SettingsDict.Add("WordWindowLeft", WordWindowLeft.ToString());
            SettingsDict.Add("WordWindowRight", WordWindowRight.ToString());
            SettingsDict.Add("CaseSensitive", CaseSensitive.ToString());
            return(SettingsDict);
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("{");
            sb.Append("TableName="); sb.Append(TableName);
            sb.Append(",CaseSensitive="); sb.Append(CaseSensitive.ToString());
            sb.Append(",Columns=[");
            if (Columns != null && Columns.Length > 0)
            {
                sb.Append(Columns[0]);
                for (int i = 1; i < Columns.Length; i++)
                {
                    sb.Append(",");
                    sb.Append(Columns[i].ToString());
                }
            }
            sb.Append("],PrimaryKey=[");
            if (PrimaryKey != null && PrimaryKey.Length > 0)
            {
                sb.Append(PrimaryKey[0]);
                for (int i = 1; i < PrimaryKey.Length; i++)
                {
                    sb.Append(PrimaryKey[i]);
                }
            }
            sb.Append("],Rows=[");
            if (Rows != null && Rows.Length > 0)
            {
                sb.Append(Rows[0].ToString());
                for (int i = 1; i < Rows.Length; i++)
                {
                    sb.Append(",");
                    sb.Append(Rows[i].ToString());
                }
            }
            sb.Append("]");
            OnWriteToStringContent(sb);
            sb.Append("}");
            return(sb.ToString());
        }