public string Encode(string value)
        {
            StringBuilder str = new StringBuilder();

            try
            {
                int key = CodingSQLHelper.SetKey(value);

                var result = CodingHelper.ShannonFanoEncode(value);
                str.Append(result);
                str.Append(Environment.NewLine);
                str.Append(CodingHelper.ShannonFanoShowTable(value));
                str.AppendFormat("${0}", key);
            }
            catch (Exception exc)
            {
            }

            return(str.ToString());
        }
        public string Decode(TableModel model)
        {
            string data = CodingSQLHelper.GetValue(model.Key);

            return(CodingHelper.ShannonFanoDecode(model.Text, data));
        }