示例#1
0
        private bool CreateSmile(SmilesDataDase Db, string SmileId, WrapPanel TextPanel)
        {
            if (Properties.Settings.Default.hideSmiles)
            {
                return(false);
            }
            else
            {
                //int nn = SmileId.LastIndexOf(':');
                //SmileId = SmileId.Substring(2, nn + 1 - 2) + " ";


                FrameworkElement s = Db.GetSmile(SmileId);
                if (s != null)
                {
                    TextPanel.Children.Add(s);
                    return(true);
                }
            }

            return(false);
        }
示例#2
0
 public System.Windows.FrameworkElement CreateSmile(string id)
 {
     return(Smiles.GetSmile(id));
 }